mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 14:33:59 +00:00
Merge "Unwrap unnecessary array_key_exists() in BetaFeatures hook registration"
This commit is contained in:
commit
668107cab4
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue