r14124 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r14123‎ | r14124 | r14125 >
Date:18:51, 7 May 2006
Author:robchurch
Status:old
Tags:
Comment:
Fix foul-up with <nowiki> et al., wfMsgExt and all sorts of other exciting fun.
Modified paths:
  • /trunk/phase3/includes/GlobalFunctions.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/GlobalFunctions.php
@@ -579,7 +579,12 @@
580580 $string = $m[1];
581581 }
582582 } elseif ( in_array('parsemag', $options) ) {
583 - $string = $wgParser->transformMsg($string, $wgMsgParserOptions);
 583+ global $wgTitle;
 584+ $parser = new Parser();
 585+ $parserOptions = new ParserOptions();
 586+ $parserOptions->setInterfaceMessage( true );
 587+ $parser->startExternalParse( $wgTitle, $parserOptions, OT_MSG );
 588+ $string = $parser->transformMsg( $string, $wgMsgParserOptions );
584589 }
585590
586591 if ( in_array('escape', $options) ) {

Status & tagging log