]> git.openstreetmap.org Git - chef.git/commitdiff
mediawiki: fix $wgExtraNamespaces[NS_PROPOSAL_TALK]
authorMartin Fischer <martin@push-f.com>
Mon, 8 Aug 2022 06:46:49 +0000 (08:46 +0200)
committerGrant <github@firefishy.com>
Mon, 8 Aug 2022 10:04:46 +0000 (13:04 +0300)
As per https://www.mediawiki.org/wiki/Manual:Using_custom_namespaces
the string values in $wgExtraNamespaces have to use underscores
instead of spaces ... otherwise MediaWiki wrongly recognizes
"Proposal_talk:Foo" to be in the main namespace.

cookbooks/mediawiki/templates/default/LocalSettings.php.erb

index cabc752a1eeefe929e494be945417afaed951c37..0382bb22ede6cada29fd559ca50c40d023349020 100644 (file)
@@ -361,7 +361,7 @@ $wgExtraNamespaces[NS_PROPOSAL] = 'Proposal';
 $wgNamespacesWithSubpages[NS_PROPOSAL] = TRUE;
 $wgContentNamespaces[] = NS_PROPOSAL;
 define('NS_PROPOSAL_TALK', 3001);
-$wgExtraNamespaces[NS_PROPOSAL_TALK] = 'Proposal talk';
+$wgExtraNamespaces[NS_PROPOSAL_TALK] = 'Proposal_talk';
 $wgNamespacesWithSubpages[NS_PROPOSAL_TALK] = TRUE;
 
 $wgNamespacesToBeSearchedDefault[NS_LANG_DE] = TRUE;