]> git.openstreetmap.org Git - chef.git/commitdiff
Use new style extension loading for Wikibase
authorTom Hughes <tom@compton.nu>
Tue, 26 Apr 2022 18:15:25 +0000 (19:15 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 26 Apr 2022 18:15:25 +0000 (19:15 +0100)
cookbooks/wiki/templates/default/mw-ext-Wikibase.inc.php.erb

index e12205b77b693e841cb47f90bcd5fd5607ed302b..efb01cf775da1cb2af7ba8062d248cb89b2e8864 100644 (file)
@@ -4,8 +4,8 @@
 $wgEnableWikibaseRepo = true;
 $wgEnableWikibaseClient = true;
 
-require_once "$IP/extensions/Wikibase/repo/Wikibase.php";
-require_once "$IP/extensions/Wikibase/client/WikibaseClient.php";
+wfLoadExtension( 'WikibaseRepository', "$IP/extensions/Wikibase/extension-repo.json" );
+wfLoadExtension( 'WikibaseClient', "$IP/extensions/Wikibase/extension-client.json" );
 // Include Wikibase.searchindex.php to include string and text values in the full text index:
 require_once "$IP/extensions/Wikibase/repo/config/Wikibase.searchindex.php";