summaryrefslogtreecommitdiffstats
path: root/themes/mageia/page_header.php
diff options
context:
space:
mode:
Diffstat (limited to 'themes/mageia/page_header.php')
-rw-r--r--themes/mageia/page_header.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/themes/mageia/page_header.php b/themes/mageia/page_header.php
index 2f3ee7e..300a16d 100644
--- a/themes/mageia/page_header.php
+++ b/themes/mageia/page_header.php
@@ -19,7 +19,8 @@ if (!isset($_GET['package'])) {
// TODO should be cached.
$missing_deps_count = preg_match_all("/<item>/m", file_get_contents("http://check.mageia.org/cauldron/dependencies.rss"), $matches);
- $unmaintained_count = file_exists(__DIR__ . '/data/unmaintained.txt') ? count(file(__DIR__ . '/data/unmaintained.txt')) : 0;
+ $unmaintained_file = $g_webapp_dir . '/data/unmaintained.txt';
+ $unmaintained_count = file_exists($unmaintained_file) ? count(file($unmaintained_file)) : 0;
if ($missing_deps_count > 0
|| $unmaintained_count > 0