From 0e722e2c1912f6df477a07feb561b80a1d6a33a7 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Sat, 23 Feb 2013 12:47:09 +0000 Subject: Fix path to unmaintained.txt --- themes/mageia/page_header.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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("//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 -- cgit v1.2.1