Merge "Disable VE on redirect pages"

This commit is contained in:
jenkins-bot 2013-05-18 10:16:19 +00:00 committed by Gerrit Code Review
commit 78c426d2eb

View file

@ -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 ) &&