X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryAllMessages.php;h=1d57c3c47ab5058fa85010ac63a008ba49e7d775;hb=5a26595a584ef51f2d537c1dab6371769fae0dda;hp=271d281124227433e96596a5d3d9483b112bb76d;hpb=dae4c94d893057345f62a3d498fb85c0a54de5a6;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryAllMessages.php b/includes/api/ApiQueryAllMessages.php index 271d281124..1d57c3c47a 100644 --- a/includes/api/ApiQueryAllMessages.php +++ b/includes/api/ApiQueryAllMessages.php @@ -1,9 +1,5 @@ @gmail.com" * * This program is free software; you can redistribute it and/or modify @@ -24,6 +20,8 @@ * @file */ +use MediaWiki\MediaWikiServices; + /** * A query action to return messages from site message cache * @@ -114,15 +112,13 @@ class ApiQueryAllMessages extends ApiQueryBase { // Whether we have any sort of message customisation filtering $customiseFilterEnabled = $params['customised'] !== 'all'; if ( $customiseFilterEnabled ) { - global $wgContLang; - $customisedMessages = AllMessagesTablePager::getCustomisedStatuses( array_map( [ $langObj, 'ucfirst' ], $messages_target ), $langObj->getCode(), - !$langObj->equals( $wgContLang ) + !$langObj->equals( MediaWikiServices::getInstance()->getContentLanguage() ) ); $customised = $params['customised'] === 'modified';