r94417 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r94416‎ | r94417 | r94418 >
Date:15:42, 13 August 2011
Author:ialex
Status:deferred
Tags:
Comment:
Use Parser::preprocess() instead of Parser::transformMsg()
Modified paths:
  • /trunk/extensions/SemanticForms/specials/SF_FormEdit.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/specials/SF_FormEdit.php
@@ -213,7 +213,7 @@
214214 // underlines - hopefully this won't
215215 // cause problems of its own
216216 $target_name = str_replace( ' ', '_', $target_name );
217 - $target_name = $wgParser->transformMsg( $target_name, ParserOptions::newFromUser( null ) );
 217+ $target_name = $wgParser->preprocess( $target_name, $wgOut->getTitle(), ParserOptions::newFromUser( null ) );
218218
219219 $title_number = "";
220220 $isRandom = false;