From 9c886da92e1b8ee92abdfc07981c53678338191a Mon Sep 17 00:00:00 2001 From: Krinkle Date: Sun, 8 Jan 2012 01:34:59 +0000 Subject: [PATCH] [mw.config] wgAction shouldn't use direct URL values * Fixes bug 25800 * Depends on r108342 --- includes/OutputPage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 70d0dd75d8..955b6a0a78 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -2822,7 +2822,7 @@ $templates * @return array */ public function getJSVars() { - global $wgUseAjax, $wgEnableMWSuggest; + global $wgUseAjax, $wgEnableMWSuggest, $mediaWiki; $title = $this->getTitle(); $ns = $title->getNamespace(); @@ -2858,7 +2858,7 @@ $templates 'wgCurRevisionId' => $title->getLatestRevID(), 'wgArticleId' => $title->getArticleId(), 'wgIsArticle' => $this->isArticle(), - 'wgAction' => $this->getRequest()->getText( 'action', 'view' ), + 'wgAction' => $mediaWiki->getPerformedAction(), 'wgUserName' => $this->getUser()->isAnon() ? null : $this->getUser()->getName(), 'wgUserGroups' => $this->getUser()->getEffectiveGroups(), 'wgCategories' => $this->getCategories(), -- 2.20.1