Merge "Disable mobile editor (skins.minerva.editor) on desktop"
This commit is contained in:
commit
69eddce6be
|
@ -1331,12 +1331,15 @@ class SkinMinerva extends SkinTemplate {
|
||||||
$req = $this->getRequest();
|
$req = $this->getRequest();
|
||||||
$title = $this->getTitle();
|
$title = $this->getTitle();
|
||||||
|
|
||||||
|
$isMFMobile = class_exists( 'MobileContext' ) &&
|
||||||
|
MobileContext::singleton()->shouldDisplayMobileView();
|
||||||
|
|
||||||
if ( !$title->isSpecialPage() ) {
|
if ( !$title->isSpecialPage() ) {
|
||||||
if ( $this->isAllowedPageAction( 'watch' ) ) {
|
if ( $this->isAllowedPageAction( 'watch' ) ) {
|
||||||
// Explicitly add the mobile watchstar code.
|
// Explicitly add the mobile watchstar code.
|
||||||
$modules[] = 'skins.minerva.watchstar';
|
$modules[] = 'skins.minerva.watchstar';
|
||||||
}
|
}
|
||||||
if ( $this->isCurrentPageContentModelEditable() ) {
|
if ( $isMFMobile && $this->isCurrentPageContentModelEditable() ) {
|
||||||
$modules[] = 'skins.minerva.editor';
|
$modules[] = 'skins.minerva.editor';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue