diff --git a/includes/ResourceLoader/VectorResourceLoaderUserModule.php b/includes/ResourceLoader/VectorResourceLoaderUserModule.php index cc2ab6421..eeceb6ebd 100644 --- a/includes/ResourceLoader/VectorResourceLoaderUserModule.php +++ b/includes/ResourceLoader/VectorResourceLoaderUserModule.php @@ -13,8 +13,10 @@ class VectorResourceLoaderUserModule extends RL\UserModule { protected function getPages( RL\Context $context ) { $user = $context->getUserObj(); $pages = []; + $config = $this->getConfig(); if ( $context->getSkin() === Constants::SKIN_NAME_MODERN && - $this->getConfig()->get( MainConfigNames::AllowUserCss ) && + $config->get( 'VectorShareUserScripts' ) && + $config->get( MainConfigNames::AllowUserCss ) && $user->isRegistered() ) { $userPage = $user->getUserPage()->getPrefixedDBkey(); diff --git a/includes/ResourceLoader/VectorResourceLoaderUserStylesModule.php b/includes/ResourceLoader/VectorResourceLoaderUserStylesModule.php index 4502379c4..8b1761f5b 100644 --- a/includes/ResourceLoader/VectorResourceLoaderUserStylesModule.php +++ b/includes/ResourceLoader/VectorResourceLoaderUserStylesModule.php @@ -13,8 +13,10 @@ class VectorResourceLoaderUserStylesModule extends RL\UserStylesModule { protected function getPages( RL\Context $context ) { $user = $context->getUserObj(); $pages = []; + $config = $this->getConfig(); if ( $context->getSkin() === Constants::SKIN_NAME_MODERN && - $this->getConfig()->get( MainConfigNames::AllowUserCss ) && + $config->get( 'VectorShareUserScripts' ) && + $config->get( MainConfigNames::AllowUserCss ) && $user->isRegistered() ) { $userPage = $user->getUserPage()->getPrefixedDBkey(); diff --git a/skin.json b/skin.json index a02b43cb0..00aa7be03 100644 --- a/skin.json +++ b/skin.json @@ -490,6 +490,10 @@ } }, "config": { + "VectorShareUserScripts": { + "value": true, + "description": "Temporary configuration flag that determines whether Vector skins should share user scripts and styles." + }, "Vector2022PreviewPages": { "value": [], "description": "Temporary configuration flag for allowing users to preview the new Vector skin."