unused dbw , remove call by reference but put a comment
authorAntoine Musso <hashar@users.mediawiki.org>
Sun, 4 Dec 2005 20:56:20 +0000 (20:56 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Sun, 4 Dec 2005 20:56:20 +0000 (20:56 +0000)
includes/QueryPage.php

index 62fd92b..9488751 100644 (file)
@@ -263,7 +263,6 @@ class QueryPage {
                $fname = get_class($this) . '::doQuery';
                $sql = $this->getSQL();
                $dbr =& wfGetDB( DB_SLAVE );
-               $dbw =& wfGetDB( DB_MASTER );
                $querycache = $dbr->tableName( 'querycache' );
 
                $wgOut->setSyndicated( $this->isSyndicated() );
@@ -338,9 +337,10 @@ class QueryPage {
        }
 
        /**
-        * Do any necessary preprocessing of the result object
+        * Do any necessary preprocessing of the result object.
+        * You should pass this by reference: &$db , &$res
         */
-       function preprocessResults( &$db, &$res ) {}
+       function preprocessResults( $db, $res ) {}
 
        /**
         * Similar to above, but packaging in a syndicated feed instead of a web page