From c2624eb751b73997058a7eac960ce500d0fa8163 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Sun, 4 Dec 2005 20:56:20 +0000 Subject: [PATCH] unused dbw , remove call by reference but put a comment --- includes/QueryPage.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.20.1