X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Flogging%2FRightsLogFormatter.php;h=c958947b0183b68dcb1bdc6d2894dce6e81e892a;hb=102bfd66c84dbb9b690c78ad0c3975b7dc8f1a0a;hp=6e527e8487c767b9f67af9a48ab53bb6d85bde9e;hpb=e602b197ab5ea867799b8e790a9f7b9f877da952;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 ) {