Maps icon indicating copy to clipboard operation
Maps copied to clipboard

invalid constant name NS_GEO_JSON?

Open RogueVortex opened this issue 3 years ago • 2 comments

Hello, I had a need to restrict the ability to edit pages in the GeoJson namespace, in an attempt to implement this, I turned to the mediawiki documentation https://www.mediawiki.org/wiki/Manual:Using_custom_namespaces , but as soon as I tried to use the $wgNamespaceProtection[NS_GEO_JSON] = ['editgeojson'] my wiki complained about the correctness of the namespace constant, ended up having to use an ID. Is this a bug, if yes, maybe it needs to be fixed. Thanks..

RogueVortex avatar May 15 '22 16:05 RogueVortex

@RogueVortex what version of Maps and what version of MediaWiki?

JeroenDeDauw avatar May 18 '22 15:05 JeroenDeDauw

@RogueVortex what version of Maps and what version of MediaWiki?

I do not have the latest version of mediawiki and maps extension. mediawiki 1.34.0, maps extension 7.20.1

RogueVortex avatar May 18 '22 17:05 RogueVortex