svn: /web/doc/trunk/include/ lib_general.inc.php

[email protected] (Kalle Sommer Nielsen)
Newsgroups php.doc.web
Message-ID <[email protected]>
kalle                                    Tue, 02 Mar 2010 03:31:18 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=295717

Log:
Fixed bug links and count for packages to match the new bug tracker

Changed paths:
    U   web/doc/trunk/include/lib_general.inc.php

Modified: web/doc/trunk/include/lib_general.inc.php
===================================================================
--- web/doc/trunk/include/lib_general.inc.php	2010-03-02 03:01:34 UTC (rev 295716)
+++ web/doc/trunk/include/lib_general.inc.php	2010-03-02 03:31:18 UTC (rev 295717)
@@ -256,33 +256,28 @@

     $localFile = FILES_DIR . "bugs_{$project}.count";

+    // $package is rawurlencode()'ed
     switch ($project)
     {
         case 'php':
-            $link    = 'http://bugs.php.net/search.php?boolean=0'
-                      .'&limit=All&order_by=status&direction=ASC&cmd=display'
-                      .'&status=Open&bug_type%5B%5D=Documentation+problem'
-                      .'&bug_age=0';
+            $package = 'Documentation+problem';
             break;

         case 'phd':
-            $link    = 'http://bugs.php.net/search.php?boolean=0'
-                      .'&limit=All&order_by=status&direction=ASC&cmd=display'
-                      .'&status=Open&bug_type%5B%5D=Doc+Build+problem'
-                      .'&bug_age=0';
+            $package = 'Doc+Build+problem';
             break;

         case 'gtk':
-            $link    = 'http://bugs.php.net/search.php?boolean=0'
-                      .'&limit=All&order_by=status&direction=ASC&cmd=display'
-                      .'&status=Open&bug_type%5B%5D=PHP-GTK+related'
-                      .'&bug_age=0';
+            $package = 'PHP-GTK+related';
             break;

         default:
             return false;
     }

+    $link = 'http://bugs.php.net/search.php?cmd=display&bug_type=All&status=Open&by=Any' .
+            '&package_name%5B%5D=' . $package;
+
     // Cached (CACHE_BUGS_COUNT defined in init.inc.php)
     if (!(is_readable($localFile) && (filemtime($localFile) > (time() - CACHE_BUGS_COUNT)))) {
         if (!$count = file_get_contents($link . '&count_only=1')) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.