Index: trunk/phase3/includes/QueryPage.php |
— | — | @@ -263,7 +263,6 @@ |
264 | 264 | $fname = get_class($this) . '::doQuery'; |
265 | 265 | $sql = $this->getSQL(); |
266 | 266 | $dbr =& wfGetDB( DB_SLAVE ); |
267 | | - $dbw =& wfGetDB( DB_MASTER ); |
268 | 267 | $querycache = $dbr->tableName( 'querycache' ); |
269 | 268 | |
270 | 269 | $wgOut->setSyndicated( $this->isSyndicated() ); |
— | — | @@ -338,9 +337,10 @@ |
339 | 338 | } |
340 | 339 | |
341 | 340 | /** |
342 | | - * Do any necessary preprocessing of the result object |
| 341 | + * Do any necessary preprocessing of the result object. |
| 342 | + * You should pass this by reference: &$db , &$res |
343 | 343 | */ |
344 | | - function preprocessResults( &$db, &$res ) {} |
| 344 | + function preprocessResults( $db, $res ) {} |
345 | 345 | |
346 | 346 | /** |
347 | 347 | * Similar to above, but packaging in a syndicated feed instead of a web page |