summaryrefslogtreecommitdiffstats
path: root/themes/mageia/page_header.php
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-02-23 12:47:09 +0000
committerNicolas Vigier <boklm@mageia.org>2013-02-23 12:47:09 +0000
commit0e722e2c1912f6df477a07feb561b80a1d6a33a7 (patch)
tree8e07b7a6e72c39f5ca52208b5780df7275ca210d /themes/mageia/page_header.php
parent070566880dbb45f4ec65c81abf03b8e4f3e178b8 (diff)
downloadpkgsubmit-0e722e2c1912f6df477a07feb561b80a1d6a33a7.tar
pkgsubmit-0e722e2c1912f6df477a07feb561b80a1d6a33a7.tar.gz
pkgsubmit-0e722e2c1912f6df477a07feb561b80a1d6a33a7.tar.bz2
pkgsubmit-0e722e2c1912f6df477a07feb561b80a1d6a33a7.tar.xz
pkgsubmit-0e722e2c1912f6df477a07feb561b80a1d6a33a7.zip
Fix path to unmaintained.txt
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