r106466 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r106465‎ | r106466 | r106467 >
Date:19:24, 16 December 2011
Author:preilly
Status:ok
Tags:
Comment:
fix for r106391
Modified paths:
  • /trunk/extensions/MobileFrontend/MobileFrontend.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MobileFrontend/MobileFrontend.php
@@ -692,15 +692,15 @@
693693 global $wgRequest;
694694 wfProfileIn( __METHOD__ );
695695
696 - $hideSearchBox = $wgRequest->getText( 'hidesearchbox' );
 696+ $hideSearchBox = $wgRequest->getInt( 'hidesearchbox' );
697697
698 - if ( $hideSearchBox == 1 ) {
 698+ if ( $hideSearchBox === 1 ) {
699699 self::$hideSearchBox = true;
700700 }
701701
702 - $hideLogo = $wgRequest->getText( 'hidelogo' );
 702+ $hideLogo = $wgRequest->getInt( 'hidelogo' );
703703
704 - if ( $hideLogo && $hideLogo == 1 ) {
 704+ if ( $hideLogo === 1 ) {
705705 self::$hideLogo = true;
706706 }
707707

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r106391add hide logo and searchbox options to querystringpreilly23:26, 15 December 2011

Status & tagging log