From: Chad Horohoe Date: Wed, 30 Jun 2010 00:52:11 +0000 (+0000) Subject: Fix for r68645: was removed in refactor X-Git-Tag: 1.31.0-rc.0~36341 X-Git-Url: http://git.cyclocoop.org/%22.htmlspecialchars%28%24url_syndic%29.%22?a=commitdiff_plain;h=f94c5c84208dbbf112b45dfd8c0317d3fd3a2ccd;p=lhc%2Fweb%2Fwiklou.git Fix for r68645: was removed in refactor --- 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 */