Index: trunk/extensions/MobileFrontend/images/w.gif |
Cannot display: file marked as a binary type. |
svn:mime-type = image/gif |
Property changes on: trunk/extensions/MobileFrontend/images/w.gif |
___________________________________________________________________ |
Added: svn:mime-type |
1 | 1 | + image/gif |
Index: trunk/extensions/MobileFrontend/MobileFrontend.php |
— | — | @@ -48,7 +48,7 @@ |
49 | 49 | 'onOutputPageBeforeHTML' ); |
50 | 50 | |
51 | 51 | class ExtMobileFrontend { |
52 | | - const VERSION = '0.4.7'; |
| 52 | + const VERSION = '0.4.8'; |
53 | 53 | |
54 | 54 | private $doc; |
55 | 55 | |
— | — | @@ -60,6 +60,8 @@ |
61 | 61 | public static $code; |
62 | 62 | public static $device; |
63 | 63 | public static $headings; |
| 64 | + public static $mainPageUrl; |
| 65 | + public static $randomPageUrl; |
64 | 66 | |
65 | 67 | public $itemsToRemove = array( |
66 | 68 | '#contentSub', # redirection notice |
— | — | @@ -116,6 +118,9 @@ |
117 | 119 | self::$dir = $wgContLang->getDir(); |
118 | 120 | self::$code = $wgContLang->getCode(); |
119 | 121 | |
| 122 | + self::$mainPageUrl = Title::newMainPage()->getFullUrl(); |
| 123 | + self::$randomPageUrl = SpecialPage::getTitleFor( 'Random' )->getFullUrl(); |
| 124 | + |
120 | 125 | try { |
121 | 126 | $wurflConfigFile = RESOURCES_DIR . 'wurfl-config.xml'; |
122 | 127 | $wurflConfig = new WURFL_Configuration_XmlConfig( $wurflConfigFile ); |
Index: trunk/extensions/MobileFrontend/views/layout/_search_webkit.html.php |
— | — | @@ -1,10 +1,13 @@ |
2 | 2 | <?php |
3 | 3 | $searchField = (!empty($_GET['search'])) ? $_GET['search'] : ''; |
4 | 4 | |
| 5 | +$mainPageUrl = self::$mainPageUrl; |
| 6 | +$randomPageUrl = self::$randomPageUrl; |
| 7 | + |
5 | 8 | $searchWebkitHtml = <<<EOD |
6 | 9 | <div id='header'> |
7 | 10 | <div id='searchbox'> |
8 | | - <img alt='W logo' id='logo' src='http://en.m.wikipedia.org/images/w.gif' /> |
| 11 | + <img alt='W logo' id='logo' src='/extensions/MobileFrontend/images/w.gif' /> |
9 | 12 | <form action='/index.php' class='search_bar' method='get'> |
10 | 13 | <input type="hidden" value="Special:Search" name="title" /> |
11 | 14 | <input type="hidden" value="Search" name="fulltext" /> |
— | — | @@ -14,8 +17,8 @@ |
15 | 18 | </form> |
16 | 19 | </div> |
17 | 20 | <div class='nav' id='nav'> |
18 | | - <form method="get" action="/"><button type="submit" id="homeButton">{$homeButton}</button></form> |
19 | | - <form method="get" action="/index.php/Special:Random"><button type="submit" id="randomButton">{$randomButton}</button></form> |
| 21 | + <form method="get" action="{$mainPageUrl}"><button type="submit" id="homeButton">{$homeButton}</button></form> |
| 22 | + <form method="get" action="{$randomPageUrl}"><button type="submit" id="randomButton">{$randomButton}</button></form> |
20 | 23 | </div> |
21 | 24 | </div> |
22 | 25 | EOD; |