Home  |  Linux  | Mysql  | PHP  | XML
From:Philip Olson Date:Mon May 26 15:32:58 2008
Subject:cvs: docweb /include lib_general.inc.php
philip		Mon May 26 21:32:58 2008 UTC

  Modified files:              
    /docweb/include	lib_general.inc.php 
  Log:
  only pass in &count_only=1 when getting the count
  
  
http://cvs.php.net/viewvc.cgi/docweb/include/lib_general.inc.php?r1=1.62&r2=1.63&diff_format=u
Index: docweb/include/lib_general.inc.php
diff -u docweb/include/lib_general.inc.php:1.62 docweb/include/lib_general.inc.php:1.63
--- docweb/include/lib_general.inc.php:1.62	Mon May 26 20:42:23 2008
+++ docweb/include/lib_general.inc.php	Mon May 26 21:32:57 2008
@@ -18,7 +18,7 @@
 |                   Gabor Hojtsy <goba@php.net>                        |
 |                   Sean Coates <sean@php.net>                         |
 +----------------------------------------------------------------------+
-$Id: lib_general.inc.php,v 1.62 2008/05/26 20:42:23 philip Exp $
+$Id: lib_general.inc.php,v 1.63 2008/05/26 21:32:57 philip Exp $
 */
 
 require_once dirname(__FILE__) . '/lib_auth.inc.php';
@@ -261,21 +261,21 @@
             $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&count_only=1';
+                      .'&bug_age=0';
             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&count_only=1';
+                      .'&bug_age=0';
             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&count_only=1';
+                      .'&bug_age=0';
             break;
             
         default:
@@ -284,7 +284,7 @@
 
     // 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)) {
+        if (!$count = file_get_contents($link . '&count_only=1')) {
             return false;
         }
         file_put_contents($localFile, $count);        


Navigate in group php.doc.web at sever news.php.net
Previous Next




  
© No Copyright
You are free to use Anything
Site Maintained by PHP Developer
Powered By PHP Consultants