http://www.mediawiki.org/wiki/Special:Code/MediaWiki/73375

Revision: 73375
Author:   nikerabbit
Date:     2010-09-20 13:35:51 +0000 (Mon, 20 Sep 2010)

Log Message:
-----------
Coding style

Modified Paths:
--------------
    trunk/phase3/includes/specials/SpecialShortpages.php

Modified: trunk/phase3/includes/specials/SpecialShortpages.php
===================================================================
--- trunk/phase3/includes/specials/SpecialShortpages.php        2010-09-20 
13:30:47 UTC (rev 73374)
+++ trunk/phase3/includes/specials/SpecialShortpages.php        2010-09-20 
13:35:51 UTC (rev 73375)
@@ -72,11 +72,13 @@
                # the page must exist for it to have been pulled out of the 
table
                if( $this->isCached() ) {
                        $batch = new LinkBatch();
-                       while( $row = $db->fetchObject( $res ) )
+                       foreach ( $res as $row ) {
                                $batch->add( $row->namespace, $row->title );
+                       }
                        $batch->execute();
-                       if( $db->numRows( $res ) > 0 )
+                       if ( $db->numRows( $res ) > 0 ) {
                                $db->dataSeek( $res, 0 );
+                       }
                }
        }
 



_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to