Merge "Legacy: remove unused style rules for floatleft/right"
[lhc/web/wiklou.git] / includes / actions / InfoAction.php
index e77cdf7..dc661aa 100644 (file)
@@ -207,8 +207,6 @@ class InfoAction extends FormlessAction {
         * @return array
         */
        protected function pageInfo() {
-               global $wgContLang;
-
                $services = MediaWikiServices::getInstance();
 
                $user = $this->getUser();
@@ -607,7 +605,7 @@ class InfoAction extends FormlessAction {
                $wordIDs = $magicWords->names;
 
                // Array of IDs => localized magic words
-               $localizedWords = $wgContLang->getMagicWords();
+               $localizedWords = $services->getContentLanguage()->getMagicWords();
 
                $listItems = [];
                foreach ( $pageProperties as $property => $value ) {