Index: trunk/phase3/includes/Article.php |
— | — | @@ -486,7 +486,7 @@ |
487 | 487 | * Get the database which should be used for reads |
488 | 488 | */ |
489 | 489 | function &getDB() { |
490 | | - $ret = wfGetDB( DB_MASTER ); |
| 490 | + $ret =& wfGetDB( DB_MASTER ); |
491 | 491 | return $ret; |
492 | 492 | #if ( $this->mForUpdate ) { |
493 | 493 | $ret =& wfGetDB( DB_MASTER ); |
— | — | @@ -854,7 +854,7 @@ |
855 | 855 | function addTrackbacks() { |
856 | 856 | global $wgOut, $wgUser; |
857 | 857 | |
858 | | - $dbr = wfGetDB(DB_SLAVE); |
| 858 | + $dbr =& wfGetDB(DB_SLAVE); |
859 | 859 | $tbs = $dbr->select( |
860 | 860 | /* FROM */ 'trackbacks', |
861 | 861 | /* SELECT */ array('tb_id', 'tb_title', 'tb_url', 'tb_ex', 'tb_name'), |
— | — | @@ -900,7 +900,7 @@ |
901 | 901 | return; |
902 | 902 | } |
903 | 903 | |
904 | | - $db = wfGetDB(DB_MASTER); |
| 904 | + $db =& wfGetDB(DB_MASTER); |
905 | 905 | $db->delete('trackbacks', array('tb_id' => $wgRequest->getInt('tbid'))); |
906 | 906 | $wgTitle->invalidateCache(); |
907 | 907 | $wgOut->addWikiText(wfMsg('trackbackdeleteok')); |
Index: trunk/phase3/includes/Parser.php |
— | — | @@ -2384,7 +2384,7 @@ |
2385 | 2385 | } |
2386 | 2386 | |
2387 | 2387 | function fetchScaryTemplateMaybeFromCache($url) { |
2388 | | - $dbr = wfGetDB(DB_SLAVE); |
| 2388 | + $dbr =& wfGetDB(DB_SLAVE); |
2389 | 2389 | $obj = $dbr->selectRow('transcache', array('tc_time', 'tc_contents'), |
2390 | 2390 | array('tc_url' => $url)); |
2391 | 2391 | if ($obj) { |
— | — | @@ -2399,7 +2399,7 @@ |
2400 | 2400 | if (!$text) |
2401 | 2401 | return wfMsg('scarytranscludefailed', $url); |
2402 | 2402 | |
2403 | | - $dbw = wfGetDB(DB_MASTER); |
| 2403 | + $dbw =& wfGetDB(DB_MASTER); |
2404 | 2404 | $dbw->replace('transcache', array(), array( |
2405 | 2405 | 'tc_url' => $url, |
2406 | 2406 | 'tc_time' => time(), |
Index: trunk/phase3/includes/LinkCache.php |
— | — | @@ -388,7 +388,7 @@ |
389 | 389 | |
390 | 390 | // Construct query |
391 | 391 | // This is very similar to Parser::replaceLinkHolders |
392 | | - $dbr = wfGetDB( DB_SLAVE ); |
| 392 | + $dbr =& wfGetDB( DB_SLAVE ); |
393 | 393 | $page = $dbr->tableName( 'page' ); |
394 | 394 | $sql = "SELECT page_id, page_namespace, page_title FROM $page WHERE " |
395 | 395 | . $this->constructSet( 'page', $dbr ); |