Anomie has uploaded a new change for review.
https://gerrit.wikimedia.org/r/272895
Change subject: Pass language to SpecialVersion::getVersion()
......................................................................
Pass language to SpecialVersion::getVersion()
The language used should be $parser->getTargetLanguage(), not the user
language.
Bug: T127233
Change-Id: I712e048367d9d65fd223cb085dbf9e5fceca286c
---
M engines/LuaCommon/SiteLibrary.php
1 file changed, 3 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Scribunto
refs/changes/95/272895/1
diff --git a/engines/LuaCommon/SiteLibrary.php
b/engines/LuaCommon/SiteLibrary.php
index c14bb22..c3a2f49 100644
--- a/engines/LuaCommon/SiteLibrary.php
+++ b/engines/LuaCommon/SiteLibrary.php
@@ -21,7 +21,9 @@
'server' => $GLOBALS['wgServer'],
'scriptPath' => $GLOBALS['wgScriptPath'],
'stylePath' => $GLOBALS['wgStylePath'],
- 'currentVersion' => SpecialVersion::getVersion(),
+ 'currentVersion' => SpecialVersion::getVersion(
+ false, $this->getParser()->getTargetLanguage()
+ ),
);
if ( !self::$namespacesCache || self::$namespacesCacheLang !==
$wgContLang->getCode() ) {
--
To view, visit https://gerrit.wikimedia.org/r/272895
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I712e048367d9d65fd223cb085dbf9e5fceca286c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Scribunto
Gerrit-Branch: master
Gerrit-Owner: Anomie <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits