Fix for r68645: <doclink> was removed in refactor
authorChad Horohoe <demon@users.mediawiki.org>
Wed, 30 Jun 2010 00:52:11 +0000 (00:52 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Wed, 30 Jun 2010 00:52:11 +0000 (00:52 +0000)
includes/installer/Installer.php

index 613c304..405f72d 100644 (file)
@@ -224,6 +224,9 @@ abstract class Installer {
                $wgExtensionMessagesFiles['MediawikiInstaller'] =
                        './includes/installer/Installer.i18n.php';
 
+               // Set our custom <doclink> hook
+               global $wgHooks;
+               $wgHooks['ParserFirstCallInit'][] = array( $this, 'registerDocLink' );
 
                $this->settings = $this->internalDefaults;
                foreach ( $this->defaultVarNames as $var ) {
@@ -796,6 +799,14 @@ abstract class Installer {
                return $html;
        }
 
+       /**
+        * Register tag hook below
+        */
+       function registerDocLink( &$parser ) {
+               $parser->setHook( 'doclink', array( $this, 'docLink' ) );
+               return true;
+       }
+
        /**
         * Extension tag hook for a documentation link
         */