summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--conf.php3
-rw-r--r--index.php4
2 files changed, 5 insertions, 2 deletions
diff --git a/conf.php b/conf.php
index a74c192..b8d9382 100644
--- a/conf.php
+++ b/conf.php
@@ -41,3 +41,6 @@ $g_root_url = 'http://pkgsubmit.mageia.org/';
/** URL to view a package svn revision. %d is replaced by the revision */
$package_commit_url = 'http://svnweb.mageia.org/packages?view=revision&revision=%d';
+
+/** name of the theme */
+$theme_name = 'mageia';
diff --git a/index.php b/index.php
index 965f8b2..314d80b 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/mageia/page_header.php';
+require __DIR__ . "/themes/$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/mageia/page_footer.php';
+require __DIR__ . "/themes/$theme_name/page_footer.php";
?>