From: Tom Hughes Date: Sun, 23 Mar 2025 09:50:03 +0000 (+0000) Subject: Ensure wikibase uses the correct repository URL X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/e2c7b4f86438a68bcbb057beca507c2364d96d3e Ensure wikibase uses the correct repository URL --- diff --git a/cookbooks/mediawiki/resources/extension.rb b/cookbooks/mediawiki/resources/extension.rb index 6240f6e87..fea8614d2 100644 --- a/cookbooks/mediawiki/resources/extension.rb +++ b/cookbooks/mediawiki/resources/extension.rb @@ -74,7 +74,7 @@ action :create do user node[:mediawiki][:user] group node[:mediawiki][:group] mode "664" - variables new_resource.variables + variables new_resource.variables.merge(:site => new_resource.site) end else file "#{mediawiki_directory}/LocalSettings.d/Ext-#{new_resource.extension}.inc.php" do diff --git a/cookbooks/wiki/templates/default/mw-ext-Wikibase.inc.php.erb b/cookbooks/wiki/templates/default/mw-ext-Wikibase.inc.php.erb index 6f7e8d6eb..d609a3d57 100644 --- a/cookbooks/wiki/templates/default/mw-ext-Wikibase.inc.php.erb +++ b/cookbooks/wiki/templates/default/mw-ext-Wikibase.inc.php.erb @@ -89,7 +89,7 @@ $wgWBClientSettings['showExternalRecentChanges'] = true; // Base URL for building links to the repository. // Assumes your wiki is setup as "http://repo.example.org/wiki/" // This can be protocol relative, such as "//www.wikidata.org" -$wgWBClientSettings['repoUrl'] = "https://wiki.openstreetmap.org"; +$wgWBClientSettings['repoUrl'] = "https://<%= @site %>"; // This setting is optional if you have the same type of setup for your // repo and client. It will default to using the client's $wgArticlePath setting,