From f3a8f9b9c6f82205ec5509f311b0a1edeac3d40c Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Wed, 3 Aug 2022 00:41:36 +0300 Subject: [PATCH] mediawiki: fix site name scoping --- cookbooks/mediawiki/resources/site.rb | 1 - cookbooks/mediawiki/templates/default/LocalSettings.php.erb | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/cookbooks/mediawiki/resources/site.rb b/cookbooks/mediawiki/resources/site.rb index 976913cde..0508bcbad 100644 --- a/cookbooks/mediawiki/resources/site.rb +++ b/cookbooks/mediawiki/resources/site.rb @@ -654,7 +654,6 @@ action_class do def mediawiki_params { - :site => => new_resource.site, :sitename => new_resource.sitename, :metanamespace => new_resource.metanamespace, :logo => new_resource.logo, diff --git a/cookbooks/mediawiki/templates/default/LocalSettings.php.erb b/cookbooks/mediawiki/templates/default/LocalSettings.php.erb index d67e65e56..7b7190005 100644 --- a/cookbooks/mediawiki/templates/default/LocalSettings.php.erb +++ b/cookbooks/mediawiki/templates/default/LocalSettings.php.erb @@ -275,7 +275,7 @@ $wgSiteNotice = "<%= @mediawiki[:site_notice] %>"; $wgReadOnly = "<%= @mediawiki[:site_readonly] %>"; <% end -%> -<% if @mediawiki[:site] == "wiki.openstreetmap.org" -%> +<% if @name == "wiki.openstreetmap.org" -%> # DE define('NS_LANG_DE', 200); $wgExtraNamespaces[NS_LANG_DE] = 'DE'; -- 2.39.5