r113199 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r113198‎ | r113199 | r113200 >
Date:23:25, 6 March 2012
Author:awjrichards
Status:ok
Tags:
Comment:
Adding Special:Search to cases to check in beforePageRedirect hook to prevent issue mentioned in bug 34126
Modified paths:
  • /trunk/extensions/MobileFrontend/MobileFrontend.body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MobileFrontend/MobileFrontend.body.php
@@ -321,6 +321,10 @@
322322 if ( $shouldDisplayMobileView ) {
323323 $redirect = $this->getMobileUrl( $redirect );
324324 }
 325+ } else if ( $out->getTitle()->isSpecial( 'Search' ) ) {
 326+ if ( $shouldDisplayMobileView ) {
 327+ $redirect = $this->getMobileUrl( $redirect );
 328+ }
325329 }
326330 wfProfileOut( __METHOD__ );
327331 return true;

Status & tagging log