http://www.mediawiki.org/wiki/Special:Code/MediaWiki/90019
Revision: 90019
Author: preilly
Date: 2011-06-13 22:53:07 +0000 (Mon, 13 Jun 2011)
Log Message:
-----------
remove show/hide from search results
Modified Paths:
--------------
trunk/extensions/MobileFrontend/MobileFrontend.php
Modified: trunk/extensions/MobileFrontend/MobileFrontend.php
===================================================================
--- trunk/extensions/MobileFrontend/MobileFrontend.php 2011-06-13 22:35:04 UTC
(rev 90018)
+++ trunk/extensions/MobileFrontend/MobileFrontend.php 2011-06-13 22:53:07 UTC
(rev 90019)
@@ -48,7 +48,7 @@
'onOutputPageBeforeHTML' );
class ExtMobileFrontend {
- const VERSION = '0.4.6';
+ const VERSION = '0.4.7';
private $doc;
@@ -386,8 +386,11 @@
$cssFileName = ( isset( self::$device['css_file_name'] ) ) ?
self::$device['css_file_name'] : 'default';
+ $search = isset( $_GET['search'] ) ? $_GET['search'] : '';
+
if ( strlen( $contentHtml ) > 4000 && $this->contentFormat ==
'XHTML'
- && self::$device['supports_javascript'] === true ) {
+ && self::$device['supports_javascript'] === true
+ && empty( $search ) ) {
$contentHtml = $this->javascriptize( $contentHtml );
} else if ( $this->contentFormat == 'WML' ) {
$contentHtml = $this->javascriptize( $contentHtml );
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs