summaryrefslogtreecommitdiffstats
path: root/themes/mageia
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-02-23 12:53:00 +0000
committerNicolas Vigier <boklm@mageia.org>2013-02-23 12:53:00 +0000
commitc4e58a044c9e1ba9e7d861972cdedffd7ce68742 (patch)
tree8fec8939108860354161d3f33fb0d48539aabce7 /themes/mageia
parent0e722e2c1912f6df477a07feb561b80a1d6a33a7 (diff)
downloadpkgsubmit-c4e58a044c9e1ba9e7d861972cdedffd7ce68742.tar
pkgsubmit-c4e58a044c9e1ba9e7d861972cdedffd7ce68742.tar.gz
pkgsubmit-c4e58a044c9e1ba9e7d861972cdedffd7ce68742.tar.bz2
pkgsubmit-c4e58a044c9e1ba9e7d861972cdedffd7ce68742.tar.xz
pkgsubmit-c4e58a044c9e1ba9e7d861972cdedffd7ce68742.zip
Remove useless if
Diffstat (limited to 'themes/mageia')
-rw-r--r--themes/mageia/page_header.php36
1 files 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('<strong>%d</strong> <a rel="nofollow" href="%s">broken <abbr title="dependencies">deps.</abbr></a>',
- $missing_deps_count,
- 'http://check.mageia.org/cauldron/dependencies.html'
- );
- }
-
- if ($unmaintained_count > 0) {
- $figures_list[] = sprintf('<strong>%d</strong> <a rel="nofollow" href="%s">unmaintained</a>',
- $unmaintained_count,
- 'data/unmaintained.txt'
- );
- }
+ if ($missing_deps_count > 0) {
+ $figures_list[] = sprintf('<strong>%d</strong> <a rel="nofollow" href="%s">broken <abbr title="dependencies">deps.</abbr></a>',
+ $missing_deps_count,
+ 'http://check.mageia.org/cauldron/dependencies.html'
+ );
+ }
- if (count($figures_list) > 0)
- $figures_list[count($figures_list)-1] .= sprintf(' <a href="%s" class="action-btn" title="%s">%s</a>',
- 'https://wiki.mageia.org/en/Importing_packages',
- 'YES you can help!', 'pick one');
+ if ($unmaintained_count > 0) {
+ $figures_list[] = sprintf('<strong>%d</strong> <a rel="nofollow" href="%s">unmaintained</a>',
+ $unmaintained_count,
+ 'data/unmaintained.txt'
+ );
}
+ if (count($figures_list) > 0)
+ $figures_list[count($figures_list)-1] .= sprintf(' <a href="%s" class="action-btn" title="%s">%s</a>',
+ 'https://wiki.mageia.org/en/Importing_packages',
+ 'YES you can help!', 'pick one');
+
preg_match_all('/<span class="bz_result_count">(\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) {