mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-23 14:06:52 +00:00
Disable $wgVisualEditorUseSingleEditTab on mobile site
Bug: T348353 Depends-On: I92f7c2c5f4691bd511219432c53379ddd928eae2 Change-Id: I3108f884173526f95d86d975d7421b4af1cff447
This commit is contained in:
parent
b8a85b50db
commit
bc4c367bba
|
@ -542,6 +542,14 @@ class Hooks implements
|
|||
|
||||
self::onSkinTemplateNavigationSpecialPage( $skin, $links );
|
||||
|
||||
if (
|
||||
ExtensionRegistry::getInstance()->isLoaded( 'MobileFrontend' ) &&
|
||||
$services->getService( 'MobileFrontend.Context' )
|
||||
->shouldDisplayMobileView()
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Exit if there's no edit link for whatever reason (e.g. protected page)
|
||||
if ( !isset( $links['views']['edit'] ) ) {
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue