X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Flogging%2FLogPage.php;h=af99940cb12f88fb75c91881acc0a4a1e5662bf1;hb=e68fdb4065a4822474f98f1c6bf2c77ef52e537b;hp=265a41cdaf301138ad607485800d08696dfc920f;hpb=e602b197ab5ea867799b8e790a9f7b9f877da952;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/logging/LogPage.php b/includes/logging/LogPage.php index 265a41cdaf..af99940cb1 100644 --- a/includes/logging/LogPage.php +++ b/includes/logging/LogPage.php @@ -223,10 +223,10 @@ class LogPage { public static function actionText( $type, $action, $title = null, $skin = null, $params = [], $filterWikilinks = false ) { - global $wgLang, $wgContLang, $wgLogActions; + global $wgLang, $wgLogActions; if ( is_null( $skin ) ) { - $langObj = $wgContLang; + $langObj = MediaWikiServices::getInstance()->getContentLanguage(); $langObjOrNull = null; } else { $langObj = $wgLang; @@ -294,9 +294,11 @@ class LogPage { return $title->getPrefixedText(); } - $linkRenderer = MediaWikiServices::getInstance()->getLinkRenderer(); + $services = MediaWikiServices::getInstance(); + $linkRenderer = $services->getLinkRenderer(); if ( $title->isSpecialPage() ) { - list( $name, $par ) = SpecialPageFactory::resolveAlias( $title->getDBkey() ); + list( $name, $par ) = $services->getSpecialPageFactory()-> + resolveAlias( $title->getDBkey() ); # Use the language name for log titles, rather than Log/X if ( $name == 'Log' ) {