From: Martin Fischer Date: Mon, 8 Aug 2022 06:46:49 +0000 (+0200) Subject: mediawiki: fix $wgExtraNamespaces[NS_PROPOSAL_TALK] X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/403c2b1aa0cc0b1f9d5677a69c665dc0bdae918c mediawiki: fix $wgExtraNamespaces[NS_PROPOSAL_TALK] 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. --- diff --git a/cookbooks/mediawiki/templates/default/LocalSettings.php.erb b/cookbooks/mediawiki/templates/default/LocalSettings.php.erb index cabc752a1..0382bb22e 100644 --- a/cookbooks/mediawiki/templates/default/LocalSettings.php.erb +++ b/cookbooks/mediawiki/templates/default/LocalSettings.php.erb @@ -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;