X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/9d29e75a6270004f3fcba753ad0654a13218654a..925707a3e834925ac70c1b429c41559790e0c2a8:/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 d5bbf71a7..5c88ccce5 100644 --- a/cookbooks/mediawiki/templates/default/LocalSettings.php.erb +++ b/cookbooks/mediawiki/templates/default/LocalSettings.php.erb @@ -112,22 +112,6 @@ $wgSVGConverters = array( 'rsvg' => '/usr/bin/rsvg-convert -w $width -h $height $wgSVGConverter = 'rsvg'; $wgSVGMaxSize = 2000; -<% if @mediawiki[:commons] -%> -# Enable use of images from https://commons.wikimedia.org -$wgForeignFileRepos[] = [ - 'class' => ForeignAPIRepo::class, - 'name' => 'wikimediacommons', - 'apibase' => 'https://commons.wikimedia.org/w/api.php', - 'url' => 'https://upload.wikimedia.org/wikipedia/commons', - 'thumbUrl' => 'https://upload.wikimedia.org/wikipedia/commons/thumb', - 'hashLevels' => 2, - 'transformVia404' => true, - 'fetchDescription' => true, - 'descriptionCacheExpiry' => 604800, - 'apiThumbCacheExpiry' => 604800, -]; -<% end -%> - ## If you use ImageMagick (or any other shell command) on a ## Linux server, this will need to be set to the name of an ## available UTF-8 locale