diff --git a/VisualEditor.php b/VisualEditor.php index d772cc8f16..21d1c63ffd 100644 --- a/VisualEditor.php +++ b/VisualEditor.php @@ -56,9 +56,7 @@ $wgAPIModules['visualeditoredit'] = 'ApiVisualEditorEdit'; // Register Hooks $wgHooks['BeforePageDisplay'][] = 'VisualEditorHooks::onBeforePageDisplay'; $wgHooks['DoEditSectionLink'][] = 'VisualEditorHooks::onDoEditSectionLink'; -if ( array_key_exists( 'GetBetaFeaturePreferences', $wgHooks ) ) { - $wgHooks['GetBetaFeaturePreferences'][] = 'VisualEditorHooks::onGetBetaPreferences'; -} +$wgHooks['GetBetaFeaturePreferences'][] = 'VisualEditorHooks::onGetBetaPreferences'; $wgHooks['GetPreferences'][] = 'VisualEditorHooks::onGetPreferences'; $wgHooks['ListDefinedTags'][] = 'VisualEditorHooks::onListDefinedTags'; $wgHooks['MakeGlobalVariablesScript'][] = 'VisualEditorHooks::onMakeGlobalVariablesScript';