TTO has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/98143


Change subject: Add page JavaScript variable wgIsContentPage
......................................................................

Add page JavaScript variable wgIsContentPage

Intended to be used in WikiEditor to hide the signature button in content
namespaces. Other uses could be for gadgets or extensions that only need
to work on content pages, or that are internally-facing and should only
be seen on non-content pages.

Change-Id: I01d9671dd14aa79e79ed887299c2f5de766f7375
---
M includes/OutputPage.php
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/43/98143/1

diff --git a/includes/OutputPage.php b/includes/OutputPage.php
index f1c7d5b..ba901e2 100644
--- a/includes/OutputPage.php
+++ b/includes/OutputPage.php
@@ -3022,6 +3022,7 @@
                        'wgRevisionId' => (int)$this->getRevisionId(),
                        'wgArticleId' => $articleId,
                        'wgIsArticle' => $this->isArticle(),
+                       'wgIsContentPage' => $title->isContentPage(),
                        'wgIsRedirect' => $title->isRedirect(),
                        'wgAction' => Action::getActionName( 
$this->getContext() ),
                        'wgUserName' => $user->isAnon() ? null : 
$user->getName(),

-- 
To view, visit https://gerrit.wikimedia.org/r/98143
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I01d9671dd14aa79e79ed887299c2f5de766f7375
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: TTO <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to