Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -2822,7 +2822,7 @@ |
2823 | 2823 | * @return array |
2824 | 2824 | */ |
2825 | 2825 | public function getJSVars() { |
2826 | | - global $wgUseAjax, $wgEnableMWSuggest; |
| 2826 | + global $wgUseAjax, $wgEnableMWSuggest, $mediaWiki; |
2827 | 2827 | |
2828 | 2828 | $title = $this->getTitle(); |
2829 | 2829 | $ns = $title->getNamespace(); |
— | — | @@ -2858,7 +2858,7 @@ |
2859 | 2859 | 'wgCurRevisionId' => $title->getLatestRevID(), |
2860 | 2860 | 'wgArticleId' => $title->getArticleId(), |
2861 | 2861 | 'wgIsArticle' => $this->isArticle(), |
2862 | | - 'wgAction' => $this->getRequest()->getText( 'action', 'view' ), |
| 2862 | + 'wgAction' => $mediaWiki->getPerformedAction(), |
2863 | 2863 | 'wgUserName' => $this->getUser()->isAnon() ? null : $this->getUser()->getName(), |
2864 | 2864 | 'wgUserGroups' => $this->getUser()->getEffectiveGroups(), |
2865 | 2865 | 'wgCategories' => $this->getCategories(), |