X-Git-Url: http://git.cyclocoop.org/%28?a=blobdiff_plain;f=maintenance%2FrefreshLinks.inc;h=7a560e973cc710a3ef2025efc31b4624d381cd62;hb=f88c771756c580442fe7ca2f84bcbb8067b77f57;hp=847a35f6fcc34bf375889c669d3c218bfb400e23;hpb=50d9a5ec18cd1e952433b9ee1f22bf04916d1537;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/refreshLinks.inc b/maintenance/refreshLinks.inc index 847a35f6fc..7a560e973c 100644 --- a/maintenance/refreshLinks.inc +++ b/maintenance/refreshLinks.inc @@ -12,7 +12,7 @@ function refreshLinks( $start, $newOnly = false, $maxLag = false, $end = 0 ) { global $wgUser, $wgParser, $wgUseImageResize, $wgUseTidy; $fname = 'refreshLinks'; - $dbr =& wfGetDB( DB_SLAVE ); + $dbr = wfGetDB( DB_SLAVE ); $start = intval( $start ); # Don't generate TeX PNGs (lack of a sensible current directory causes errors anyway) @@ -68,7 +68,7 @@ function fixLinksFromArticle( $id ) { global $wgTitle, $wgParser; $wgTitle = Title::newFromID( $id ); - $dbw =& wfGetDB( DB_MASTER ); + $dbw = wfGetDB( DB_MASTER ); $linkCache =& LinkCache::singleton(); $linkCache->clear(); @@ -95,7 +95,7 @@ function deleteLinksFromNonexistent( $maxLag = 0 ) { wfWaitForSlaves( $maxLag ); - $dbw =& wfGetDB( DB_WRITE ); + $dbw = wfGetDB( DB_WRITE ); $linksTables = array( 'pagelinks' => 'pl_from',