aboutsummaryrefslogtreecommitdiffstats
path: root/includes/parser/ParserOptions.php
diff options
context:
space:
mode:
authorNiklas Laxström <nikerabbit@users.mediawiki.org>2011-05-15 07:16:25 +0000
committerNiklas Laxström <nikerabbit@users.mediawiki.org>2011-05-15 07:16:25 +0000
commit7fe4a8e1bb216d04f4fb1b2d14e122abd51cb5ac (patch)
tree5b713f4ea7e4d7c2cd4dd679dcbf028de5539bac /includes/parser/ParserOptions.php
parentca25c69e6163267d88c4c5b45b054f325abf08c3 (diff)
downloadmediawikicore-7fe4a8e1bb216d04f4fb1b2d14e122abd51cb5ac.tar.gz
mediawikicore-7fe4a8e1bb216d04f4fb1b2d14e122abd51cb5ac.zip
Fixed a bug in transformation where previous language could leak into later transformations in UI language. Not sure what do with userlang.
Notes
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/88134
Diffstat (limited to 'includes/parser/ParserOptions.php')
-rw-r--r--includes/parser/ParserOptions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/parser/ParserOptions.php b/includes/parser/ParserOptions.php
index a310617ccb0c..88e25844a399 100644
--- a/includes/parser/ParserOptions.php
+++ b/includes/parser/ParserOptions.php
@@ -137,7 +137,7 @@ class ParserOptions {
function setTidy( $x ) { return wfSetVar( $this->mTidy, $x); }
function setSkin( $x ) { $this->mSkin = $x; }
function setInterfaceMessage( $x ) { return wfSetVar( $this->mInterfaceMessage, $x); }
- function setTargetLanguage( $x ) { return wfSetVar( $this->mTargetLanguage, $x); }
+ function setTargetLanguage( $x ) { return wfSetVar( $this->mTargetLanguage, $x, true ); }
function setMaxIncludeSize( $x ) { return wfSetVar( $this->mMaxIncludeSize, $x ); }
function setMaxPPNodeCount( $x ) { return wfSetVar( $this->mMaxPPNodeCount, $x ); }
function setMaxTemplateDepth( $x ) { return wfSetVar( $this->mMaxTemplateDepth, $x ); }