Index: trunk/extensions/MobileFrontend/MobileFrontend.php |
— | — | @@ -688,7 +688,20 @@ |
689 | 689 | } |
690 | 690 | |
691 | 691 | private function checkUserStatus() { |
| 692 | + global $wgRequest; |
692 | 693 | wfProfileIn( __METHOD__ ); |
| 694 | + |
| 695 | + $hideSearchBox = $wgRequest->getText( 'hidesearchbox' ); |
| 696 | + |
| 697 | + if ( $hideSearchBox && $hideSearchBox == 1 ) { |
| 698 | + self::$hideSearchBox = true; |
| 699 | + } |
| 700 | + |
| 701 | + $hideLogo = $wgRequest->getText( 'hidelogo' ); |
| 702 | + |
| 703 | + if ( $hideLogo && $hideLogo == 1 ) { |
| 704 | + self::$hideLogo = true; |
| 705 | + } |
693 | 706 | |
694 | 707 | if ( !empty( $_SERVER['HTTP_APPLICATION_VERSION'] ) && |
695 | 708 | strpos( $_SERVER['HTTP_APPLICATION_VERSION'], 'Wikipedia Mobile' ) !== false ) { |