From f94c5c84208dbbf112b45dfd8c0317d3fd3a2ccd Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Wed, 30 Jun 2010 00:52:11 +0000 Subject: [PATCH] Fix for r68645: was removed in refactor --- includes/installer/Installer.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/includes/installer/Installer.php b/includes/installer/Installer.php index 613c304051..405f72d8bb 100644 --- a/includes/installer/Installer.php +++ b/includes/installer/Installer.php @@ -224,6 +224,9 @@ abstract class Installer { $wgExtensionMessagesFiles['MediawikiInstaller'] = './includes/installer/Installer.i18n.php'; + // Set our custom 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 */ -- 2.20.1