Index: trunk/phase3/includes/GlobalFunctions.php |
— | — | @@ -579,7 +579,12 @@ |
580 | 580 | $string = $m[1]; |
581 | 581 | } |
582 | 582 | } 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 ); |
584 | 589 | } |
585 | 590 | |
586 | 591 | if ( in_array('escape', $options) ) { |