Dan-nl has uploaded a new change for review. https://gerrit.wikimedia.org/r/91818
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 1 file changed, 14 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/GWToolset refs/changes/18/91818/1 diff --git a/GWToolset.php b/GWToolset.php index 78c62f7..54fbf65 100644 --- a/GWToolset.php +++ b/GWToolset.php @@ -35,11 +35,22 @@ /** * 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' ); /** * registering extension metadata with MediaWiki @@ -56,7 +67,9 @@ /** * add user permissions */ +$wgGroupPermissions["gwtoolset"]["gwtoolset"] = true; $wgGroupPermissions["gwtoolset"]["upload_by_url"] = true; +$wgGroupPermissions['sysop']['gwtoolset'] = true; $wgGroupPermissions['sysop']['gwtoolset-debug'] = true; /** -- To view, visit https://gerrit.wikimedia.org/r/91818 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I47e95f194e718b21e13645028c27c0314a958dd4 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/GWToolset Gerrit-Branch: master Gerrit-Owner: Dan-nl <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
