X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/f1c9bbf0ff3bde913226bbfae37f576215531347..8a453080af3ff555115f67fb82697fa40f7ba56c:/cookbooks/mediawiki/templates/default/LocalSettings.php.erb diff --git a/cookbooks/mediawiki/templates/default/LocalSettings.php.erb b/cookbooks/mediawiki/templates/default/LocalSettings.php.erb index 7b7190005..d5bbf71a7 100644 --- a/cookbooks/mediawiki/templates/default/LocalSettings.php.erb +++ b/cookbooks/mediawiki/templates/default/LocalSettings.php.erb @@ -368,6 +368,13 @@ $wgForceUIMsgAsContentMsg = array( 'mainpage-url', 'mapfeatures-url', 'contribut <%= "require_once('#{file}');" %> <% end -%> +<% if @name == "wiki.openstreetmap.org" -%> +# setting the search weight of the main wiki's proposal namespace lower then general talk pages (0.2), but +# higher then wiki project namespace (0.1) +# Documentation at https://phabricator.wikimedia.org/source/extension-cirrussearch/browse/master/docs/settings.txt$693 +$wgCirrusSearchNamespaceWeights = array_merge ( $wgCirrusSearchNamespaceWeights, array ( NS_PROPOSAL => 0.15 )); +<% end -%> + <% if not(@mediawiki[:private_accounts]) and not(@mediawiki[:private_site]) -%> # require user confirmation for certain actions $wgGroupPermissions['user']['move'] = false;