From: Antoine Musso Date: Sun, 4 Dec 2005 20:56:20 +0000 (+0000) Subject: unused dbw , remove call by reference but put a comment X-Git-Tag: 1.6.0~1020 X-Git-Url: https://git.cyclocoop.org/%7B%7B%20url_for%28?a=commitdiff_plain;h=c2624eb751b73997058a7eac960ce500d0fa8163;p=lhc%2Fweb%2Fwiklou.git unused dbw , remove call by reference but put a comment --- diff --git a/includes/QueryPage.php b/includes/QueryPage.php index 62fd92b09d..948875139a 100644 --- a/includes/QueryPage.php +++ b/includes/QueryPage.php @@ -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