summaryrefslogtreecommitdiff
path: root/includes/MessageCache.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/MessageCache.php')
-rw-r--r--includes/MessageCache.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/MessageCache.php b/includes/MessageCache.php
index cc14ec2b..a111211f 100644
--- a/includes/MessageCache.php
+++ b/includes/MessageCache.php
@@ -677,8 +677,9 @@ class MessageCache {
$popts = $this->getParserOptions();
$popts->setInterfaceMessage( $interface );
$popts->setTargetLanguage( $language );
- $popts->setUserLang( $language );
+ $userlang = $popts->setUserLang( $language );
$message = $this->mParser->transformMsg( $message, $popts );
+ $popts->setUserLang( $userlang );
}
return $message;
}