Disable $wgVisualEditorUseSingleEditTab on mobile site

Bug: T348353
Depends-On: I92f7c2c5f4691bd511219432c53379ddd928eae2
Change-Id: I3108f884173526f95d86d975d7421b4af1cff447
This commit is contained in:
Jon Robson 2023-10-06 13:30:05 -07:00 committed by David Lynch
parent b8a85b50db
commit bc4c367bba

View file

@ -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;