From c4e58a044c9e1ba9e7d861972cdedffd7ce68742 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Sat, 23 Feb 2013 12:53:00 +0000 Subject: Remove useless if --- themes/mageia/page_header.php | 36 ++++++++++++++++-------------------- 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/themes/mageia/page_header.php b/themes/mageia/page_header.php index 300a16d..9a43031 100644 --- a/themes/mageia/page_header.php +++ b/themes/mageia/page_header.php @@ -22,29 +22,25 @@ if (!isset($_GET['package'])) { $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 - ) { - if ($missing_deps_count > 0) { - $figures_list[] = sprintf('%d broken deps.', - $missing_deps_count, - 'http://check.mageia.org/cauldron/dependencies.html' - ); - } - - if ($unmaintained_count > 0) { - $figures_list[] = sprintf('%d unmaintained', - $unmaintained_count, - 'data/unmaintained.txt' - ); - } + if ($missing_deps_count > 0) { + $figures_list[] = sprintf('%d broken deps.', + $missing_deps_count, + 'http://check.mageia.org/cauldron/dependencies.html' + ); + } - if (count($figures_list) > 0) - $figures_list[count($figures_list)-1] .= sprintf(' %s', - 'https://wiki.mageia.org/en/Importing_packages', - 'YES you can help!', 'pick one'); + if ($unmaintained_count > 0) { + $figures_list[] = sprintf('%d unmaintained', + $unmaintained_count, + 'data/unmaintained.txt' + ); } + if (count($figures_list) > 0) + $figures_list[count($figures_list)-1] .= sprintf(' %s', + 'https://wiki.mageia.org/en/Importing_packages', + 'YES you can help!', 'pick one'); + preg_match_all('/(\d+)/', file_get_contents("https://bugs.mageia.org/buglist.cgi?quicksearch=%40qa-bugs+-kw%3Avali"), $matches); $qa_bugs = $matches[1][0]; if ($qa_bugs > 0) { -- cgit v1.2.1