X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=includes%2Flogging%2FRightsLogFormatter.php;h=c958947b0183b68dcb1bdc6d2894dce6e81e892a;hb=f704207ba129198e21ada72c2961e5bd26ac3227;hp=6e527e8487c767b9f67af9a48ab53bb6d85bde9e;hpb=18a6b556b3c595bd0ced99316280094e77ab4a7e;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 ) {