X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=blobdiff_plain;f=includes%2Flogging%2FRightsLogFormatter.php;h=c958947b0183b68dcb1bdc6d2894dce6e81e892a;hb=9730bd3e3bd7b4c8bd3035982afbb9e5f855b5d6;hp=6e527e8487c767b9f67af9a48ab53bb6d85bde9e;hpb=485f66f1744fea056e20a5bef619989bf1749202;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/logging/RightsLogFormatter.php b/includes/logging/RightsLogFormatter.php index 6e527e8487..c958947b01 100644 --- a/includes/logging/RightsLogFormatter.php +++ b/includes/logging/RightsLogFormatter.php @@ -23,6 +23,8 @@ * @since 1.22 */ +use MediaWiki\MediaWikiServices; + /** * This class formats rights log entries. * @@ -30,10 +32,11 @@ */ class RightsLogFormatter extends LogFormatter { protected function makePageLink( Title $title = null, $parameters = [], $html = null ) { - global $wgContLang, $wgUserrightsInterwikiDelimiter; + global $wgUserrightsInterwikiDelimiter; if ( !$this->plaintext ) { - $text = $wgContLang->ucfirst( $title->getDBkey() ); + $text = MediaWikiServices::getInstance()->getContentLanguage()-> + ucfirst( $title->getDBkey() ); $parts = explode( $wgUserrightsInterwikiDelimiter, $text, 2 ); if ( count( $parts ) === 2 ) {