Index: trunk/extensions/MobileFrontend/MobileFrontend.php |
— | — | @@ -506,12 +506,12 @@ |
507 | 507 | $mobileAction = $wgRequest->getText( 'mobileaction' ); |
508 | 508 | $action = $wgRequest->getText( 'action' ); |
509 | 509 | |
510 | | - if ( self::$useFormat !== 'mobile' || self::$useFormat !== 'mobile-wap' || |
| 510 | + if ( self::$useFormat !== 'mobile' && self::$useFormat !== 'mobile-wap' && |
511 | 511 | !$xDevice ) { |
512 | 512 | wfProfileOut( __METHOD__ ); |
513 | 513 | return true; |
514 | 514 | } |
515 | | - if ( $action === 'edit' && |
| 515 | + if ( $action === 'edit' || |
516 | 516 | $mobileAction === 'view_normal_site' ) { |
517 | 517 | wfProfileOut( __METHOD__ ); |
518 | 518 | return true; |