Skip to content

Commit

Permalink
Remove GrowthExperiments as a dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
lens0021 committed Jul 28, 2021
1 parent 1a51ac4 commit a0f8a3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion .github/workflows/dependencies
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
CategoryTree
Disambiguator
GrowthExperiments
PageViewInfo
Wikibase
8 changes: 3 additions & 5 deletions includes/HookHandlers/DefaultOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
namespace MediaWiki\Extension\UnifiedExtensionForFemiwiki\HookHandlers;

use Config;
use GrowthExperiments\HelpPanelHooks;
use GrowthExperiments\HomepageHooks;
use MediaWiki\User\UserOptionsManager;

class DefaultOptions implements
Expand Down Expand Up @@ -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;
}
}

Expand Down

0 comments on commit a0f8a3f

Please sign in to comment.