From 72c943c9da104c0dee065e143968e7172b125a64 Mon Sep 17 00:00:00 2001 From: madman Date: Mon, 20 Aug 2012 16:56:51 +0000 Subject: [PATCH] Bug 39496: action=info show non-working magic words Changed localization of magic words to use content language instead of user's language. Change-Id: I7cb114c4aa41af911f34ddc63b2cedbb02b015a6 --- includes/actions/InfoAction.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/includes/actions/InfoAction.php b/includes/actions/InfoAction.php index a249a77772..60941c87f1 100644 --- a/includes/actions/InfoAction.php +++ b/includes/actions/InfoAction.php @@ -56,7 +56,7 @@ class InfoAction extends FormlessAction { * @return string Page information that will be added to the output */ public function onView() { - global $wgDisableCounters, $wgRCMaxAge, $wgRestrictionTypes; + global $wgContLang, $wgDisableCounters, $wgRCMaxAge, $wgRestrictionTypes; $user = $this->getUser(); $lang = $this->getLanguage(); @@ -244,10 +244,8 @@ class InfoAction extends FormlessAction { // Array of magic word IDs $wordIDs = $magicWords->names; - // @todo FIXME: Should report in content language, as localised - // magic words cannot be used. // Array of IDs => localized magic words - $localizedWords = $lang->getMagicWords(); + $localizedWords = $wgContLang->getMagicWords(); $listItems = array(); foreach ( $pageProperties as $property => $value ) { -- 2.20.1