diff options
author | Nicolas Vigier <boklm@mageia.org> | 2012-12-10 17:08:01 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2012-12-10 17:08:01 +0000 |
commit | cd6432fdc2647af2f5ce6fe9d03dc2fea1092b6a (patch) | |
tree | 2deb92f061fbbe9fa1f372b722ab6c451a8bfb02 | |
parent | 307205ceb5d79882b49282bc5af285c301722751 (diff) | |
download | pkgsubmit-cd6432fdc2647af2f5ce6fe9d03dc2fea1092b6a.tar pkgsubmit-cd6432fdc2647af2f5ce6fe9d03dc2fea1092b6a.tar.gz pkgsubmit-cd6432fdc2647af2f5ce6fe9d03dc2fea1092b6a.tar.bz2 pkgsubmit-cd6432fdc2647af2f5ce6fe9d03dc2fea1092b6a.tar.xz pkgsubmit-cd6432fdc2647af2f5ce6fe9d03dc2fea1092b6a.zip |
conf.php: add $themes_dir variable
-rw-r--r-- | conf.php | 3 | ||||
-rw-r--r-- | index.php | 4 |
2 files changed, 5 insertions, 2 deletions
@@ -44,3 +44,6 @@ $package_commit_url = 'http://svnweb.mageia.org/packages?view=revision&revision= /** name of the theme */ $theme_name = 'mageia'; + +/** themes directory */ +$themes_dir = $g_webapp_dir . '/themes/'; @@ -68,7 +68,7 @@ publish_stats_headers( (isset($_GET['last']) && $total > 0) ? reset($pkgs) : null ); -require __DIR__ . "/themes/$theme_name/page_header.php"; +require "$themes_dir/$theme_name/page_header.php"; if (!isset($_GET['package'])) { $bannerfile = dirname(__FILE__) . '/banner.html'; @@ -256,5 +256,5 @@ else <script src="js/jquery.js"></script> <script src="js/pkgsubmit.js"></script> <?php -require __DIR__ . "/themes/$theme_name/page_footer.php"; +require "$themes_dir/$theme_name/page_footer.php"; ?> |