diff options
Diffstat (limited to 'maintenance/refreshLinks.inc')
-rw-r--r-- | maintenance/refreshLinks.inc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/maintenance/refreshLinks.inc b/maintenance/refreshLinks.inc index 6d68e277..036d4109 100644 --- a/maintenance/refreshLinks.inc +++ b/maintenance/refreshLinks.inc @@ -17,7 +17,9 @@ function refreshLinks( $start, $newOnly = false, $maxLag = false, $end = 0, $red $wgUser->setOption('math', MW_MATH_SOURCE); # Don't generate extension images (e.g. Timeline) - $wgParser->clearTagHooks(); + if( method_exists( $wgParser, "clearTagHooks" ) ) { + $wgParser->clearTagHooks(); + } # Don't use HTML tidy $wgUseTidy = false; @@ -110,13 +112,13 @@ function fixRedirect( $id ){ function fixLinksFromArticle( $id ) { global $wgTitle, $wgParser; - + $wgTitle = Title::newFromID( $id ); $dbw = wfGetDB( DB_MASTER ); $linkCache =& LinkCache::singleton(); $linkCache->clear(); - + if ( is_null( $wgTitle ) ) { return; } |