mw.config: Add wgIsRedirect
authorTimo Tijhof <krinklemail@gmail.com>
Tue, 23 Jul 2013 19:11:17 +0000 (21:11 +0200)
committerTimo Tijhof <krinklemail@gmail.com>
Tue, 23 Jul 2013 19:11:31 +0000 (21:11 +0200)
Change-Id: I6e365f20b513ded10ede51d4b34de0736653a3dc

includes/OutputPage.php

index 96c7830..83a7d3f 100644 (file)
@@ -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(),