In refreshLinks.php don't clear tag hooks
authorTim Starling <tstarling@wikimedia.org>
Tue, 19 Jan 2016 06:09:42 +0000 (17:09 +1100)
committerTim Starling <tstarling@wikimedia.org>
Tue, 19 Jan 2016 06:15:39 +0000 (17:15 +1100)
It made perfect sense when I introduced this line in June 2005, but now
that we have <ref> etc., we need to use the normal parser configuration.

Change-Id: I5a32e4e38badff85fe6d7d63c3fa158dc6fd5336

maintenance/refreshLinks.php

index a0cd6a9..1159e53 100644 (file)
@@ -73,8 +73,6 @@ class RefreshLinks extends Maintenance {
        private function doRefreshLinks( $start, $newOnly = false,
                $end = null, $redirectsOnly = false, $oldRedirectsOnly = false
        ) {
-               global $wgParser;
-
                $reportingInterval = 100;
                $dbr = $this->getDB( DB_SLAVE );
 
@@ -85,9 +83,6 @@ class RefreshLinks extends Maintenance {
                // Give extensions a chance to optimize settings
                Hooks::run( 'MaintenanceRefreshLinksInit', array( $this ) );
 
-               # Don't generate extension images (e.g. Timeline)
-               $wgParser->clearTagHooks();
-
                $what = $redirectsOnly ? "redirects" : "links";
 
                if ( $oldRedirectsOnly ) {