/[soft]/build_system/web/themes/mageia/page_header.php
ViewVC logotype

Diff of /build_system/web/themes/mageia/page_header.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 7363 by boklm, Sat Feb 23 12:53:00 2013 UTC revision 7364 by boklm, Sat Feb 23 12:59:44 2013 UTC
# Line 41  if (!isset($_GET['package'])) { Line 41  if (!isset($_GET['package'])) {
41                                                      'https://wiki.mageia.org/en/Importing_packages',                                                      'https://wiki.mageia.org/en/Importing_packages',
42                                                      'YES you can help!', 'pick one');                                                      'YES you can help!', 'pick one');
43    
44      preg_match_all('/<span class="bz_result_count">(\d+)/', file_get_contents("https://bugs.mageia.org/buglist.cgi?quicksearch=%40qa-bugs+-kw%3Avali"), $matches);      $figures_list[] = sprintf('<a rel="nofollow" href="%s">Some updates to validate</a>
45      $qa_bugs = $matches[1][0];                                  <a href="%s" class="action-btn" title="%s">%s</a>',
     if ($qa_bugs > 0) {  
         $figures_list[] = sprintf('<strong>%d</strong> <a rel="nofollow" href="%s">update%s to validate</a>  
                                     <a href="%s" class="action-btn" title="%s">%s</a>',  
                 $qa_bugs,  
46                  'http://mageia.madb.org/tools/updates',                  'http://mageia.madb.org/tools/updates',
                 plural($qa_bugs),  
47                  'https://wiki.mageia.org/en/QA_process_for_validating_updates',                  'https://wiki.mageia.org/en/QA_process_for_validating_updates',
48                  'YES you can help!', 'see how'                  'YES you can help!', 'see how'
49          );      );
     }  
50    
51      $html_figures = null;      $html_figures = null;
52      if (count($figures_list) > 0) {      if (count($figures_list) > 0) {

Legend:
Removed from v.7363  
changed lines
  Added in v.7364

  ViewVC Help
Powered by ViewVC 1.1.26