Index: trunk/extensions/MobileFrontend/MobileFrontend.php |
— | — | @@ -55,7 +55,7 @@ |
56 | 56 | $wgMFRemovableClasses = array(); |
57 | 57 | |
58 | 58 | class ExtMobileFrontend { |
59 | | - const VERSION = '0.5.32'; |
| 59 | + const VERSION = '0.5.33'; |
60 | 60 | |
61 | 61 | /** |
62 | 62 | * @var DOMDocument |
— | — | @@ -87,6 +87,7 @@ |
88 | 88 | public static $disableImages; |
89 | 89 | public static $enableImages; |
90 | 90 | public static $isMainPage = false; |
| 91 | + public static $searchField; |
91 | 92 | |
92 | 93 | public $itemsToRemove = array( |
93 | 94 | '#contentSub', # redirection notice |
— | — | @@ -257,6 +258,7 @@ |
258 | 259 | self::$requestedSegment = $wgRequest->getText( 'seg', 0 ); |
259 | 260 | self::$search = $wgRequest->getText( 'search' ); |
260 | 261 | self::$callback = $wgRequest->getText( 'callback' ); |
| 262 | + self::$searchField = $wgRequest->getText( 'search', '' ); |
261 | 263 | |
262 | 264 | $acceptHeader = $_SERVER["HTTP_ACCEPT"]; |
263 | 265 | $device = new DeviceDetection(); |
Index: trunk/extensions/MobileFrontend/views/layout/_search_webkit.html.php |
— | — | @@ -1,8 +1,7 @@ |
2 | 2 | <?php |
3 | 3 | global $wgExtensionAssetsPath; |
4 | 4 | |
5 | | -$searchField = (!empty($_GET['search'])) ? $_GET['search'] : ''; |
6 | | - |
| 5 | +$searchField = self::$searchField; |
7 | 6 | $mainPageUrl = self::$mainPageUrl; |
8 | 7 | $randomPageUrl = self::$randomPageUrl; |
9 | 8 | $homeButton = self::$messages['mobile-frontend-home-button']; |