jenkins-bot has submitted this change and it was merged.
Change subject: Add JavaScript variable wgContentNamespaces
......................................................................
Add JavaScript variable wgContentNamespaces
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.
It is an array of namespace IDs, so that end-users can quickly check
whether wgNamespaceNumber is in this array.
Change-Id: I01d9671dd14aa79e79ed887299c2f5de766f7375
---
M includes/resourceloader/ResourceLoaderStartUpModule.php
1 file changed, 1 insertion(+), 0 deletions(-)
Approvals:
Bartosz Dziewoński: Looks good to me, approved
jenkins-bot: Verified
diff --git a/includes/resourceloader/ResourceLoaderStartUpModule.php
b/includes/resourceloader/ResourceLoaderStartUpModule.php
index b38f448..93c5d1b 100644
--- a/includes/resourceloader/ResourceLoaderStartUpModule.php
+++ b/includes/resourceloader/ResourceLoaderStartUpModule.php
@@ -84,6 +84,7 @@
'wgMainPageTitle' => $mainPage->getPrefixedText(),
'wgFormattedNamespaces' =>
$wgContLang->getFormattedNamespaces(),
'wgNamespaceIds' => $namespaceIds,
+ 'wgContentNamespaces' =>
MWNamespace::getContentNamespaces(),
'wgSiteName' => $wgSitename,
'wgFileExtensions' => array_values( array_unique(
$wgFileExtensions ) ),
'wgDBname' => $wgDBname,
--
To view, visit https://gerrit.wikimedia.org/r/98143
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I01d9671dd14aa79e79ed887299c2f5de766f7375
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: TTO <[email protected]>
Gerrit-Reviewer: Bartosz Dziewoński <[email protected]>
Gerrit-Reviewer: Daniel Friesen <[email protected]>
Gerrit-Reviewer: Jforrester <[email protected]>
Gerrit-Reviewer: PleaseStand <[email protected]>
Gerrit-Reviewer: TTO <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits