summaryrefslogtreecommitdiff
path: root/maintenance/refreshLinks.inc
diff options
context:
space:
mode:
Diffstat (limited to 'maintenance/refreshLinks.inc')
-rw-r--r--maintenance/refreshLinks.inc9
1 files changed, 4 insertions, 5 deletions
diff --git a/maintenance/refreshLinks.inc b/maintenance/refreshLinks.inc
index 34ea6294..7a560e97 100644
--- a/maintenance/refreshLinks.inc
+++ b/maintenance/refreshLinks.inc
@@ -1,8 +1,7 @@
<?php
/**
* @todo document
- * @package MediaWiki
- * @subpackage Maintenance
+ * @addtogroup Maintenance
*/
/** */
@@ -13,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)
@@ -69,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();
@@ -96,7 +95,7 @@ function deleteLinksFromNonexistent( $maxLag = 0 ) {
wfWaitForSlaves( $maxLag );
- $dbw =& wfGetDB( DB_WRITE );
+ $dbw = wfGetDB( DB_WRITE );
$linksTables = array(
'pagelinks' => 'pl_from',