Index: trunk/extensions/MobileFrontend/MobileFrontend.body.php |
— | — | @@ -1218,8 +1218,8 @@ |
1219 | 1219 | 'wgScriptPath' => $wgScriptPath, |
1220 | 1220 | 'isFilePage' => self::$isFilePage, |
1221 | 1221 | 'zeroRatedBanner' => self::$zeroRatedBanner, |
1222 | | - 'showText' => wfMessage( 'mobile-frontend-show-button' ), |
1223 | | - 'hideText' => wfMessage( 'mobile-frontend-hide-button' ), |
| 1222 | + 'showText' => self::$messages[ 'mobile-frontend-show-button' ], |
| 1223 | + 'hideText' => self::$messages[ 'mobile-frontend-hide-button' ], |
1224 | 1224 | ); |
1225 | 1225 | $applicationTemplate->setByArray( $options ); |
1226 | 1226 | wfProfileOut( __METHOD__ ); |
Index: trunk/extensions/MobileFrontend/templates/ApplicationTemplate.php |
— | — | @@ -40,7 +40,10 @@ |
41 | 41 | $startLinkTag = "<link href='{$this->data['wgExtensionAssetsPath']}/MobileFrontend/stylesheets/"; |
42 | 42 | $endLinkTag = "' media='all' rel='Stylesheet' type='text/css' />"; |
43 | 43 | $filePageStyle = ( $this->data['isFilePage'] ) ? $startLinkTag . 'filepage.css' . $endLinkTag : ''; |
| 44 | + $buttonHideText = htmlentities( $this->data['hideText'], ENT_QUOTES ); |
| 45 | + $buttonShowText = htmlentities( $this->data['showText'], ENT_QUOTES ); |
44 | 46 | |
| 47 | + |
45 | 48 | $applicationHtml = <<<HTML |
46 | 49 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
47 | 50 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
— | — | @@ -59,8 +62,8 @@ |
60 | 63 | var title = "{$this->data['htmlTitle']}"; |
61 | 64 | var scriptPath = "{$this->data['wgScriptPath']}"; |
62 | 65 | var placeholder = "{$this->data['placeholder']}"; |
63 | | - var showText = "{$this->data['showText']}"; |
64 | | - var hideText = "{$this->data['hideText']}"; |
| 66 | + var showText = "{$buttonShowText}"; |
| 67 | + var hideText = "{$buttonHideText}"; |
65 | 68 | //]]> |
66 | 69 | </script> |
67 | 70 | </head> |