X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FconvertExtensionToRegistration.php;h=2fb36976bb4924401973cae5ec536875a9068a9b;hb=0cd36fec250ffb0afe87dc357abe42d723add3e0;hp=76bc982459ee9cd4d585ada910213ceef81044b7;hpb=67322efbafd9838e1ac54a92a911c3528388e095;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/convertExtensionToRegistration.php b/maintenance/convertExtensionToRegistration.php index 76bc982459..2fb36976bb 100644 --- a/maintenance/convertExtensionToRegistration.php +++ b/maintenance/convertExtensionToRegistration.php @@ -10,10 +10,20 @@ class ConvertExtensionToRegistration extends Maintenance { 'AutoloadClasses' => 'removeAbsolutePath', 'ExtensionCredits' => 'handleCredits', 'ResourceModules' => 'handleResourceModules', + 'ResourceModuleSkinStyles' => 'handleResourceModules', 'Hooks' => 'handleHooks', 'ExtensionFunctions' => 'handleExtensionFunctions', ); + /** + * Things that were formerly globals and should still be converted + * + * @var array + */ + protected $formerGlobals = array( + 'TrackingCategories', + ); + /** * Keys that should be put at the top of the generated JSON file (T86608) * @@ -44,7 +54,7 @@ class ConvertExtensionToRegistration extends Maintenance { $processor = new ReflectionClass( 'ExtensionProcessor' ); $settings = $processor->getProperty( 'globalSettings' ); $settings->setAccessible( true ); - return $settings->getValue(); + return $settings->getValue() + $this->formerGlobals; } public function execute() {