r68756 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r68755‎ | r68756 | r68757 >
Date:00:52, 30 June 2010
Author:demon
Status:ok
Tags:
Comment:
Fix for r68645: <doclink> was removed in refactor
Modified paths:
  • /trunk/phase3/includes/installer/Installer.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/installer/Installer.php
@@ -224,6 +224,9 @@
225225 $wgExtensionMessagesFiles['MediawikiInstaller'] =
226226 './includes/installer/Installer.i18n.php';
227227
 228+ // Set our custom <doclink> hook
 229+ global $wgHooks;
 230+ $wgHooks['ParserFirstCallInit'][] = array( $this, 'registerDocLink' );
228231
229232 $this->settings = $this->internalDefaults;
230233 foreach ( $this->defaultVarNames as $var ) {
@@ -797,6 +800,14 @@
798801 }
799802
800803 /**
 804+ * Register tag hook below
 805+ */
 806+ function registerDocLink( &$parser ) {
 807+ $parser->setHook( 'doclink', array( $this, 'docLink' ) );
 808+ return true;
 809+ }
 810+
 811+ /**
801812 * Extension tag hook for a documentation link
802813 */
803814 function docLink( $linkText, $attribs, $parser ) {

Follow-up revisions

RevisionCommit summaryAuthorDate
r68760r68756 - Make the use of MW_CONFIG_CALLBACK compatible with PHP 5.1mah04:25, 30 June 2010

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r68645* consolidate some installer functionals into the Installer class...mah21:48, 27 June 2010

Status & tagging log