mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 11:16:51 +00:00
Merge "Preserve veaction, vesection on special redirects to wiki pages"
This commit is contained in:
commit
40315e5bf6
|
@ -665,4 +665,15 @@ class VisualEditorHooks {
|
||||||
public static function onParserTestGlobals( array &$settings ) {
|
public static function onParserTestGlobals( array &$settings ) {
|
||||||
$settings['wgVisualEditorInParserTests'] = true;
|
$settings['wgVisualEditorInParserTests'] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param Array $redirectParams Parameters preserved on special page redirects
|
||||||
|
* to wiki pages
|
||||||
|
* @return bool Always true
|
||||||
|
*/
|
||||||
|
public static function onRedirectSpecialArticleRedirectParams( &$redirectParams ) {
|
||||||
|
array_push( $redirectParams, 'veaction', 'vesection' );
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,6 +60,8 @@ $wgHooks['GetBetaFeaturePreferences'][] = 'VisualEditorHooks::onGetBetaPreferenc
|
||||||
$wgHooks['GetPreferences'][] = 'VisualEditorHooks::onGetPreferences';
|
$wgHooks['GetPreferences'][] = 'VisualEditorHooks::onGetPreferences';
|
||||||
$wgHooks['ListDefinedTags'][] = 'VisualEditorHooks::onListDefinedTags';
|
$wgHooks['ListDefinedTags'][] = 'VisualEditorHooks::onListDefinedTags';
|
||||||
$wgHooks['MakeGlobalVariablesScript'][] = 'VisualEditorHooks::onMakeGlobalVariablesScript';
|
$wgHooks['MakeGlobalVariablesScript'][] = 'VisualEditorHooks::onMakeGlobalVariablesScript';
|
||||||
|
$wgHooks['RedirectSpecialArticleRedirectParams'][] =
|
||||||
|
'VisualEditorHooks::onRedirectSpecialArticleRedirectParams';
|
||||||
$wgHooks['ResourceLoaderGetConfigVars'][] = 'VisualEditorHooks::onResourceLoaderGetConfigVars';
|
$wgHooks['ResourceLoaderGetConfigVars'][] = 'VisualEditorHooks::onResourceLoaderGetConfigVars';
|
||||||
$wgHooks['ResourceLoaderRegisterModules'][] = 'VisualEditorHooks::onResourceLoaderRegisterModules';
|
$wgHooks['ResourceLoaderRegisterModules'][] = 'VisualEditorHooks::onResourceLoaderRegisterModules';
|
||||||
$wgHooks['ResourceLoaderTestModules'][] = 'VisualEditorHooks::onResourceLoaderTestModules';
|
$wgHooks['ResourceLoaderTestModules'][] = 'VisualEditorHooks::onResourceLoaderTestModules';
|
||||||
|
|
Loading…
Reference in a new issue