mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 18:39:52 +00:00
Merge "Disable VE on redirect pages"
This commit is contained in:
commit
78c426d2eb
|
@ -23,6 +23,8 @@ class VisualEditorHooks {
|
|||
public static function onBeforePageDisplay( &$output, &$skin ) {
|
||||
global $wgVisualEditorNamespaces;
|
||||
if (
|
||||
// Disable on redirect pages until redirects are editable
|
||||
!$skin->getTitle()->isRedirect() &&
|
||||
// User has the 'visualeditor-enable' preference set
|
||||
$skin->getUser()->getOption( 'visualeditor-enable' ) &&
|
||||
in_array( $skin->getSkinName(), self::$supportedSkins ) &&
|
||||
|
|
Loading…
Reference in a new issue