Index: trunk/extensions/MobileFrontend/MobileFrontend.php |
— | — | @@ -65,7 +65,7 @@ |
66 | 66 | ); |
67 | 67 | |
68 | 68 | class ExtMobileFrontend { |
69 | | - const VERSION = '0.5.42'; |
| 69 | + const VERSION = '0.5.43'; |
70 | 70 | |
71 | 71 | /** |
72 | 72 | * @var DOMDocument |
— | — | @@ -98,6 +98,8 @@ |
99 | 99 | public static $enableImages; |
100 | 100 | public static $isMainPage = false; |
101 | 101 | public static $searchField; |
| 102 | + public static $disableImagesURL; |
| 103 | + public static $enableImagesURL; |
102 | 104 | |
103 | 105 | public $itemsToRemove = array( |
104 | 106 | '#contentSub', # redirection notice |
— | — | @@ -145,7 +147,10 @@ |
146 | 148 | } |
147 | 149 | |
148 | 150 | public function getMsg() { |
149 | | - global $wgUser, $wgContLang; |
| 151 | + global $wgUser, $wgContLang, $wgRequest; |
| 152 | + |
| 153 | + self::$disableImagesURL = $wgRequest->escapeAppendQuery( 'disableImages=1' ); |
| 154 | + self::$enableImagesURL = $wgRequest->escapeAppendQuery( 'enableImages=1' ); |
150 | 155 | $skin = $wgUser->getSkin(); |
151 | 156 | $copyright = $skin->getCopyright(); |
152 | 157 | // Need to stash the results of the "wfMsg" call before the Output Buffering handler |
Index: trunk/extensions/MobileFrontend/views/layout/_footmenu_default.html.php |
— | — | @@ -8,10 +8,10 @@ |
9 | 9 | |
10 | 10 | if ( self::$disableImages == 0 ) { |
11 | 11 | $imagesToggle = $disableImages; |
12 | | - $imagesURL = '?disableImages=1'; |
| 12 | + $imagesURL = self::$disableImagesURL; |
13 | 13 | } else { |
14 | 14 | $imagesToggle = $enableImages; |
15 | | - $imagesURL = '?enableImages=1'; |
| 15 | + $imagesURL = self::$enableImagesURL; |
16 | 16 | } |
17 | 17 | |
18 | 18 | $footerHtml = <<<EOD |