From: Tim Starling Date: Sat, 23 Apr 2005 12:43:45 +0000 (+0000) Subject: oops X-Git-Tag: 1.5.0alpha1~173 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/gestion/rappel_supprimer.php?a=commitdiff_plain;h=0af46ac5e13577b469727da03a7794343ed70018;p=lhc%2Fweb%2Fwiklou.git oops --- diff --git a/includes/QueryPage.php b/includes/QueryPage.php index 82cfc36218..8838d99327 100644 --- a/includes/QueryPage.php +++ b/includes/QueryPage.php @@ -132,7 +132,7 @@ class QueryPage { # Do query on the (possibly out of date) slave server $slowDB =& wfGetDB( DB_SLAVE, array( $this->getName(), 'QueryPage-recache', 'vslow' ) ); $maxstored = 1000; - $res = $dbr->query( $sql . $this->getOrder() . $dbr->limitResult( $maxstored,0 ), $fname ); + $res = $slowDB->query( $sql . $this->getOrder() . $dbr->limitResult( $maxstored,0 ), $fname ); # Fetch results $insertSql = "INSERT INTO $querycache (qc_type,qc_namespace,qc_title,qc_value) VALUES ";