diff --git a/extension.json b/extension.json index 96d603e..ff85dca 100644 --- a/extension.json +++ b/extension.json @@ -18,6 +18,9 @@ "AutoloadNamespaces": { "MediaWiki\\Extension\\Sanctions\\": "includes/" }, + "AutoloadClasses": { + "SanctionsCreateTemplates": "maintenance/SanctionsCreateTemplates.php" + }, "ResourceModules": { "ext.sanctions.special.sanctions.styles": { "styles": [ "styles/spacial-sanctions.less" ] diff --git a/includes/Hooks.php b/includes/Hooks.php index cd2406e..adf1a71 100644 --- a/includes/Hooks.php +++ b/includes/Hooks.php @@ -13,6 +13,7 @@ use MWException; use OutputPage; use RequestContext; +use SanctionsCreateTemplates; use Skin; use SpecialPage; use Title; @@ -37,7 +38,7 @@ public static function onLoadExtensionSchemaUpdates( DatabaseUpdater $updater = } // @todo else require_once "$dir/../maintenance/SanctionsCreateTemplates.php"; - $updater->addPostDatabaseUpdateMaintenance( 'SanctionsCreateTemplates' ); + $updater->addPostDatabaseUpdateMaintenance( SanctionsCreateTemplates::class ); return true; } diff --git a/maintenance/SanctionsCreateTemplates.php b/maintenance/SanctionsCreateTemplates.php index 03892f2..05c7f57 100644 --- a/maintenance/SanctionsCreateTemplates.php +++ b/maintenance/SanctionsCreateTemplates.php @@ -1,14 +1,6 @@