Convert some mediawiki extensions to use wfLoadExtension
authorTom Hughes <tom@compton.nu>
Thu, 5 Jul 2018 19:43:57 +0000 (20:43 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 5 Jul 2018 19:43:57 +0000 (20:43 +0100)
cookbooks/mediawiki/templates/default/mw-ext-AbuseFilter.inc.php.erb
cookbooks/mediawiki/templates/default/mw-ext-AntiSpoof.inc.php.erb
cookbooks/mediawiki/templates/default/mw-ext-TitleBlacklist.inc.php.erb

index 4528b22304308a77846359eea6af538ed25d9141..4c9216ac0d9b9cd7a7510734671593ea841f09e6 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 # DO NOT EDIT - This file is being maintained by Chef
-require_once($IP .'/extensions/AbuseFilter/AbuseFilter.php');
+wfLoadExtension( 'AbuseFilter' );
 $wgGroupPermissions['sysop']['abusefilter-modify'] = true;
 $wgGroupPermissions['*']['abusefilter-log-detail'] = true;
 $wgGroupPermissions['*']['abusefilter-view'] = true;
index c2e147707d175acf58362c142c95d250313f7866..124318b7f0b24e45f68fbfccc9be0316032f9d3f 100644 (file)
@@ -1,3 +1,3 @@
 <?php
 # DO NOT EDIT - This file is being maintained by Chef
-require_once($IP .'/extensions/AntiSpoof/AntiSpoof.php');
+wfLoadExtension( 'AntiSpoof' );
index c7c9810706ed883c6a08aedf5bf2a9c81f8be58f..37eecee4745d98fd5f22817316596ce56f2406ac 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 # DO NOT EDIT - This file is being maintained by Chef
-require_once($IP .'/extensions/TitleBlacklist/TitleBlacklist.php');
+wfLoadExtension( 'TitleBlacklist' );
 $wgTitleBlacklistSources = array(
   array(
     'type' => TBLSRC_LOCALPAGE,