Legoktm has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/261873

Change subject: Use $wgContLang for parameter going into a content language 
message
......................................................................

Use $wgContLang for parameter going into a content language message

Change-Id: I59d9b7f7c1029ca33ce6b61ab6eae3dcf5def647
---
M includes/WikidataPageBanner.hooks.php
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikidataPageBanner 
refs/changes/73/261873/1

diff --git a/includes/WikidataPageBanner.hooks.php 
b/includes/WikidataPageBanner.hooks.php
index b27ef71..6228cf5 100644
--- a/includes/WikidataPageBanner.hooks.php
+++ b/includes/WikidataPageBanner.hooks.php
@@ -186,7 +186,7 @@
         *      they will be added as warnings.
         */
        public static function addBadParserFunctionArgsWarning( array $args, 
Parser $parser ) {
-               global $wgLang;
+               global $wgContLang;
 
                $badParams = array();
                $allowedParams = array_flip( self::$allowedParameters );
@@ -204,7 +204,7 @@
                        // this message will be visible when the page preview 
button is used, but not when the page is
                        // saved. It contains a list of unknown parameters.
                        $parser->getOutput()->addWarning(
-                               wfMessage( 
'wikidatapagebanner-invalid-arguments', $wgLang->commaList( $badParams ) )
+                               wfMessage( 
'wikidatapagebanner-invalid-arguments', $wgContLang->commaList( $badParams ) )
                                        ->title( $parser->getTitle() )
                                        ->inContentLanguage()
                                        ->text()

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I59d9b7f7c1029ca33ce6b61ab6eae3dcf5def647
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikidataPageBanner
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to