]> git.openstreetmap.org Git - chef.git/commitdiff
mediawiki: disable ext js GeoIP service
authorGrant Slater <git@firefishy.com>
Sat, 8 Sep 2018 23:59:45 +0000 (00:59 +0100)
committerGrant Slater <git@firefishy.com>
Sat, 8 Sep 2018 23:59:45 +0000 (00:59 +0100)
cookbooks/mediawiki/resources/site.rb
cookbooks/mediawiki/templates/default/mw-ext-UniversalLanguageSelector.inc.php.erb [new file with mode: 0644]

index 185798bc6adb0b30d47bc52e278ef35db17e6e62..418108384807573fc7f4e0bb803baad33bfce9bd 100644 (file)
@@ -351,6 +351,7 @@ action :create do
 
   mediawiki_extension "UniversalLanguageSelector" do
     site new_resource.site
+    template "mw-ext-UniversalLanguageSelector.inc.php.erb"
     update_site false
   end
 
diff --git a/cookbooks/mediawiki/templates/default/mw-ext-UniversalLanguageSelector.inc.php.erb b/cookbooks/mediawiki/templates/default/mw-ext-UniversalLanguageSelector.inc.php.erb
new file mode 100644 (file)
index 0000000..b0d3104
--- /dev/null
@@ -0,0 +1,3 @@
+<?php wfLoadExtension( 'UniversalLanguageSelector' );
+# Disable GeoIP service
+$wgULSGeoService=false;