$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 ) {
return $html;
}
+ /**
+ * Register tag hook below
+ */
+ function registerDocLink( &$parser ) {
+ $parser->setHook( 'doclink', array( $this, 'docLink' ) );
+ return true;
+ }
+
/**
* Extension tag hook for a documentation link
*/