https://www.mediawiki.org/wiki/Special:Code/MediaWiki/113199
Revision: 113199
Author: awjrichards
Date: 2012-03-06 23:25:20 +0000 (Tue, 06 Mar 2012)
Log Message:
-----------
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: trunk/extensions/MobileFrontend/MobileFrontend.body.php
===================================================================
--- trunk/extensions/MobileFrontend/MobileFrontend.body.php 2012-03-06
23:19:19 UTC (rev 113198)
+++ trunk/extensions/MobileFrontend/MobileFrontend.body.php 2012-03-06
23:25:20 UTC (rev 113199)
@@ -321,6 +321,10 @@
if ( $shouldDisplayMobileView ) {
$redirect = $this->getMobileUrl( $redirect );
}
+ } else if ( $out->getTitle()->isSpecial( 'Search' ) ) {
+ if ( $shouldDisplayMobileView ) {
+ $redirect = $this->getMobileUrl( $redirect );
+ }
}
wfProfileOut( __METHOD__ );
return true;
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs