From cd6432fdc2647af2f5ce6fe9d03dc2fea1092b6a Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Mon, 10 Dec 2012 17:08:01 +0000 Subject: conf.php: add $themes_dir variable --- conf.php | 3 +++ index.php | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/conf.php b/conf.php index b8d9382..5969966 100644 --- a/conf.php +++ b/conf.php @@ -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/'; diff --git a/index.php b/index.php index 314d80b..9846951 100644 --- a/index.php +++ b/index.php @@ -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 -- cgit v1.2.1