From a0f8a3f81d40facefcf25319600e63c374dedf81 Mon Sep 17 00:00:00 2001 From: lens0021 Date: Wed, 28 Jul 2021 23:51:10 +0900 Subject: [PATCH] Remove GrowthExperiments as a dependency --- .github/workflows/dependencies | 1 - includes/HookHandlers/DefaultOptions.php | 8 +++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/dependencies b/.github/workflows/dependencies index 2fe581f..980cf39 100644 --- a/.github/workflows/dependencies +++ b/.github/workflows/dependencies @@ -1,5 +1,4 @@ CategoryTree Disambiguator -GrowthExperiments PageViewInfo Wikibase diff --git a/includes/HookHandlers/DefaultOptions.php b/includes/HookHandlers/DefaultOptions.php index 64c60d7..5716cca 100644 --- a/includes/HookHandlers/DefaultOptions.php +++ b/includes/HookHandlers/DefaultOptions.php @@ -3,8 +3,6 @@ namespace MediaWiki\Extension\UnifiedExtensionForFemiwiki\HookHandlers; use Config; -use GrowthExperiments\HelpPanelHooks; -use GrowthExperiments\HomepageHooks; use MediaWiki\User\UserOptionsManager; class DefaultOptions implements @@ -47,12 +45,12 @@ public function onUserResetAllOptions( } if ( $config->get( 'GEHelpPanelNewAccountEnablePercentage' ) == 100 ) { - $newOptions[HelpPanelHooks::HELP_PANEL_PREFERENCES_TOGGLE] = 1; + $newOptions['growthexperiments-help-panel-tog-help-panel'] = 1; } if ( $config->get( 'GEHomepageNewAccountEnablePercentage' ) == 100 ) { - $newOptions[HomepageHooks::HOMEPAGE_PREF_ENABLE] = 1; - $newOptions[HomepageHooks::HOMEPAGE_PREF_PT_LINK] = 1; + $newOptions['growthexperiments-homepage-enable'] = 1; + $newOptions['growthexperiments-homepage-pt-link'] = 1; } }