Index: trunk/phase3/includes/installer/Installer.php |
— | — | @@ -224,6 +224,9 @@ |
225 | 225 | $wgExtensionMessagesFiles['MediawikiInstaller'] = |
226 | 226 | './includes/installer/Installer.i18n.php'; |
227 | 227 | |
| 228 | + // Set our custom <doclink> hook |
| 229 | + global $wgHooks; |
| 230 | + $wgHooks['ParserFirstCallInit'][] = array( $this, 'registerDocLink' ); |
228 | 231 | |
229 | 232 | $this->settings = $this->internalDefaults; |
230 | 233 | foreach ( $this->defaultVarNames as $var ) { |
— | — | @@ -797,6 +800,14 @@ |
798 | 801 | } |
799 | 802 | |
800 | 803 | /** |
| 804 | + * Register tag hook below |
| 805 | + */ |
| 806 | + function registerDocLink( &$parser ) { |
| 807 | + $parser->setHook( 'doclink', array( $this, 'docLink' ) ); |
| 808 | + return true; |
| 809 | + } |
| 810 | + |
| 811 | + /** |
801 | 812 | * Extension tag hook for a documentation link |
802 | 813 | */ |
803 | 814 | function docLink( $linkText, $attribs, $parser ) { |