r93850 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93849‎ | r93850 | r93851 >
Date:19:59, 3 August 2011
Author:ialex
Status:ok
Tags:
Comment:
Just call $wgOut->parse() instead of doing a lot of things to call $wgParser->parse()
Modified paths:
  • /trunk/phase3/includes/SkinTemplate.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SkinTemplate.php
@@ -1337,12 +1337,10 @@
13381338 * @private
13391339 */
13401340 function msgWiki( $str ) {
1341 - global $wgParser, $wgOut;
 1341+ global $wgOut;
13421342
13431343 $text = $this->translator->translate( $str );
1344 - $parserOutput = $wgParser->parse( $text, $wgOut->getTitle(),
1345 - $wgOut->parserOptions(), true );
1346 - echo $parserOutput->getText();
 1344+ echo $wgOut->parse( $text );
13471345 }
13481346
13491347 /**

Status & tagging log