Seb35 has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/394032 )

Change subject: Use dedicated functions for i18n
......................................................................

Use dedicated functions for i18n

A specific call triggers a 'Sessions are disabled for this entry point'
exception in load.php. This fix replaces by an equivalent function.

By the way, it is used here the '''content language''' and not the user
language, which is better else the result could be misinterpreted depending
on the user language.

Change-Id: Icc69115758c2ac0b5d0c87c855187e5d24559caf
---
M Arrays.php
1 file changed, 1 insertion(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Arrays 
refs/changes/32/394032/1

diff --git a/Arrays.php b/Arrays.php
index fc9e7df..a04de8a 100644
--- a/Arrays.php
+++ b/Arrays.php
@@ -104,9 +104,7 @@
                }
                else {
                        // since 2.0 the default separator for arrayprint is 
set to the languages default
-                       global $wgLang;
-                       $wgLang->getMessageFromDB( 'comma-separator' );
-                       self::$mDefaultSep = $wgLang->getMessageFromDB( 
'comma-separator' );
+                       self::$mDefaultSep = wfMessage( 'comma-separator' 
)->inContentLanguage()->text();
                }
 
                // Parser::SFH_OBJECT_ARGS available since MW 1.12

-- 
To view, visit https://gerrit.wikimedia.org/r/394032
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Icc69115758c2ac0b5d0c87c855187e5d24559caf
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Arrays
Gerrit-Branch: master
Gerrit-Owner: Seb35 <se...@seb35.fr>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to