X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/e96ff51f93bdd8cb2e66fa0f114abba99048cb01..18f8a3e67e75c333fcaec591c1ca6ebb0c3e3aed:/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 11bbd022b..18dc6aec9 100644 --- a/cookbooks/mediawiki/templates/default/LocalSettings.php.erb +++ b/cookbooks/mediawiki/templates/default/LocalSettings.php.erb @@ -236,6 +236,9 @@ $wgShowIPinHeader = FALSE; # Job Runs by cron $wgJobRunRate = 0; +# dissolves double redirects automatically +$wgFixDoubleRedirects = TRUE; + # Allow external images from a few sites $wgAllowExternalImagesFrom = array( 'http://tile.openstreetmap.org/', 'http://svenanders.openstreetmap.de/', 'http://josm.openstreetmap.de/', 'http://trac.openstreetmap.org/', 'http://rweait.dev.openstreetmap.org/' ); @@ -320,6 +323,13 @@ $wgNamespacesToBeSearchedDefault[NS_LANG_NL] = TRUE; $wgNamespacesToBeSearchedDefault[NS_LANG_RU] = TRUE; $wgNamespacesToBeSearchedDefault[NS_LANG_JA] = TRUE; + +# Raise expensive lua (and other function) call limits to match WP +# Docs: https://www.mediawiki.org/wiki/Manual:$wgExpensiveParserFunctionLimit +# Wikipedia's Config: https://noc.wikimedia.org/conf/highlight.php?file=CommonSettings.php +$wgExpensiveParserFunctionLimit = 500; + + <% if @mediawiki[:site_notice] -%> $wgSiteNotice = "<%= @mediawiki[:site_notice] %>"; <% end -%>