jenkins-bot has submitted this change and it was merged.

Change subject: registering namespace with Extension_default_namespaces
......................................................................


registering namespace with Extension_default_namespaces

* re: assembla/159 - sort out content namespace

Change-Id: I47e95f194e718b21e13645028c27c0314a958dd4
---
M GWToolset.php
M README
2 files changed, 20 insertions(+), 4 deletions(-)

Approvals:
  BryanDavis: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/GWToolset.php b/GWToolset.php
index 78c62f7..9f08fb1 100644
--- a/GWToolset.php
+++ b/GWToolset.php
@@ -35,11 +35,24 @@
 
 /**
  * define namespaces
+ * @see http://www.mediawiki.org/wiki/Manual:Using_custom_namespaces
+ * @see https://www.mediawiki.org/wiki/Extension_default_namespaces#GWToolset
  */
 if ( !defined( 'NS_GWTOOLSET' ) ) {
-       define( 'NS_GWTOOLSET', 332 );
+       define( 'NS_GWTOOLSET', 490 );
        define( 'NS_GWTOOLSET_TALK', NS_GWTOOLSET + 1 );
+} else {
+       echo
+               'Namespace conflict. Either another extension or configuration 
has already ' .
+               'defined the namespace NS_GWTOOLSET.';
+       exit();
 }
+
+$wgExtraNamespaces[NS_GWTOOLSET] = 'GWToolset';
+$wgExtraNamespaces[NS_GWTOOLSET_TALK] = 'GWToolset_talk';
+$wgNamespaceProtection[NS_GWTOOLSET] = array( 'gwtoolset' );
+$wgNamespacesWithSubpages[NS_GWTOOLSET] = true;
+$wgNamespacesWithSubpages[NS_GWTOOLSET_TALK] = true;
 
 /**
  * registering extension metadata with MediaWiki
@@ -56,7 +69,9 @@
 /**
  * add user permissions
  */
+$wgGroupPermissions["gwtoolset"]["gwtoolset"] = true;
 $wgGroupPermissions["gwtoolset"]["upload_by_url"] = true;
+$wgGroupPermissions['sysop']['gwtoolset'] = true;
 $wgGroupPermissions['sysop']['gwtoolset-debug'] = true;
 
 /**
diff --git a/README b/README
index c055fea..bec1006 100644
--- a/README
+++ b/README
@@ -12,12 +12,13 @@
 
 Reviewers
 ---------
-many thanks to those who have reviewed the code and helped us get the
-extension ready for the wikimedia production servers
+many thanks to those who have reviewed the code and helped us get the extension
+ready for the wikimedia production servers ( listed in alphabetical order )
 
 User:Aaron_Schulz
-User:CSteipp
 User:Bawolff
+User:BryanDavis
+User:CSteipp
 User:MHolmquist
 User:Parent5446
 User:Peachey88

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I47e95f194e718b21e13645028c27c0314a958dd4
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/extensions/GWToolset
Gerrit-Branch: master
Gerrit-Owner: Dan-nl <[email protected]>
Gerrit-Reviewer: BryanDavis <[email protected]>
Gerrit-Reviewer: Dan-nl <[email protected]>
Gerrit-Reviewer: jenkins-bot

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

Reply via email to