Dan-nl has uploaded a new change for review.

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


Change subject: adding additional namespace test
......................................................................

adding additional namespace test

Bug: 58591
Change-Id: I1fa636bcadbf20457ebf1d20ddcb579bdbf2f9f8
---
M GWToolset.namespaces.php
M GWToolset.php
2 files changed, 5 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/GWToolset 
refs/changes/23/102423/1

diff --git a/GWToolset.namespaces.php b/GWToolset.namespaces.php
index f810375..3d9c1e4 100644
--- a/GWToolset.namespaces.php
+++ b/GWToolset.namespaces.php
@@ -8,6 +8,11 @@
  */
 $namespaceNames = array();
 
+if ( !defined( 'NS_GWTOOLSET' ) ) {
+       define( 'NS_GWTOOLSET', 490 );
+       define( 'NS_GWTOOLSET_TALK', NS_GWTOOLSET + 1 );
+}
+
 $namespaceNames['en'] = array(
        NS_GWTOOLSET       => 'GWToolset',
        NS_GWTOOLSET_TALK  => 'GWToolset_talk'
diff --git a/GWToolset.php b/GWToolset.php
index 636589e..e3141ab 100644
--- a/GWToolset.php
+++ b/GWToolset.php
@@ -33,9 +33,6 @@
 if ( !defined( 'NS_GWTOOLSET' ) ) {
        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';

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1fa636bcadbf20457ebf1d20ddcb579bdbf2f9f8
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

Reply via email to