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;
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' ) {