http://www.mediawiki.org/wiki/Special:Code/MediaWiki/94282
Revision: 94282
Author: ialex
Date: 2011-08-11 20:44:09 +0000 (Thu, 11 Aug 2011)
Log Message:
-----------
Use Parser::preprocess() instead of Parser::transformMsg()
Fixme: couldn't find any use of these two methods, should they be removed
entirely?
Modified Paths:
--------------
trunk/extensions/SocialProfile/UserStats/UserStatsClass.php
Modified: trunk/extensions/SocialProfile/UserStats/UserStatsClass.php
===================================================================
--- trunk/extensions/SocialProfile/UserStats/UserStatsClass.php 2011-08-11
20:12:53 UTC (rev 94281)
+++ trunk/extensions/SocialProfile/UserStats/UserStatsClass.php 2011-08-11
20:44:09 UTC (rev 94282)
@@ -406,7 +406,7 @@
$ctg = 'Opinions by User ' . ( $this->user_name );
$parser = new Parser();
$ctgTitle = Title::newFromText(
- $parser->transformMsg( trim( $ctg ),
$wgOut->parserOptions() )
+ $parser->preprocess( trim( $ctg ),
$wgOut->getTitle(), $wgOut->parserOptions() )
);
$ctgTitle = $ctgTitle->getDBkey();
$dbw = wfGetDB( DB_MASTER );
@@ -444,7 +444,7 @@
$dbw = wfGetDB( DB_MASTER );
$ctg = 'Opinions by User ' . ( $this->user_name );
$ctgTitle = Title::newFromText(
- $parser->transformMsg( trim( $ctg ),
$wgOut->parserOptions() )
+ $parser->preprocess( trim( $ctg ), $wgOut->getTitle(),
$wgOut->parserOptions() )
);
$ctgTitle = $ctgTitle->getDBkey();
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs