From 7627cf61759aca2bd8f7128c5d1141689d6769f5 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Tue, 23 Jul 2013 21:11:17 +0200 Subject: [PATCH] mw.config: Add wgIsRedirect Change-Id: I6e365f20b513ded10ede51d4b34de0736653a3dc --- includes/OutputPage.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 96c7830a21..83a7d3f77a 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -3024,6 +3024,7 @@ $templates 'wgCurRevisionId' => $latestRevID, 'wgArticleId' => $pageID, 'wgIsArticle' => $this->isArticle(), + 'wgIsRedirect' => $title->isRedirect(), 'wgAction' => Action::getActionName( $this->getContext() ), 'wgUserName' => $user->isAnon() ? null : $user->getName(), 'wgUserGroups' => $user->getEffectiveGroups(), -- 2.20.1