http://www.mediawiki.org/wiki/Special:Code/MediaWiki/88737
Revision: 88737
Author: foxtrott
Date: 2011-05-24 18:56:12 +0000 (Tue, 24 May 2011)
Log Message:
-----------
followup r87565: FormEdit does not rely on initialized wgParser anymore
Modified Paths:
--------------
trunk/extensions/SemanticForms/specials/SF_FormEdit.php
Modified: trunk/extensions/SemanticForms/specials/SF_FormEdit.php
===================================================================
--- trunk/extensions/SemanticForms/specials/SF_FormEdit.php 2011-05-24
18:50:43 UTC (rev 88736)
+++ trunk/extensions/SemanticForms/specials/SF_FormEdit.php 2011-05-24
18:56:12 UTC (rev 88737)
@@ -29,6 +29,8 @@
function execute( $query, $redirectOnError = true ) {
global $wgRequest, $wgOut;
+ wfProfileIn( __METHOD__ );
+
$this->setHeaders();
$this->mForm = $wgRequest->getVal( 'form' );
$this->mTarget = $wgRequest->getVal( 'target' );
@@ -64,6 +66,9 @@
} else {
$this->mError = null;
}
+
+ wfProfileOut( __METHOD__ );
+
}
static function printAltFormsList( $alt_forms, $target_name ) {
@@ -209,7 +214,7 @@
// underlines - hopefully this won't
// cause problems of its own
$target_name = str_replace( ' ', '_',
$target_name );
- $target_name =
$wgParser->recursiveTagParse( $target_name );
+ $target_name = $wgParser->transformMsg(
$target_name, ParserOptions::newFromUser( null ) );
$title_number = "";
$isRandom = false;
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs