Index: trunk/extensions/MobileFrontend/MobileFrontend.body.php |
— | — | @@ -1271,7 +1271,6 @@ |
1272 | 1272 | public function getMobileUrl( $url, $forceHttps = false ) { |
1273 | 1273 | $parsedUrl = wfParseUrl( $url ); |
1274 | 1274 | $this->updateMobileUrlHost( $parsedUrl ); |
1275 | | - $this->updateMobileUrlPath( $parsedUrl ); |
1276 | 1275 | if ( $forceHttps ) { |
1277 | 1276 | $parsedUrl[ 'scheme' ] = 'https'; |
1278 | 1277 | } |
— | — | @@ -1311,6 +1310,12 @@ |
1312 | 1311 | |
1313 | 1312 | /** |
1314 | 1313 | * Update path of given URL to conform to mobile URL template. |
| 1314 | + * |
| 1315 | + * NB: this is not actually being used anywhere at the moment. It will |
| 1316 | + * take some magic to get MW to properly handle path modifications like |
| 1317 | + * this is intended to provide. This will hopefully be implemented someday |
| 1318 | + * in the not to distant future. |
| 1319 | + * |
1315 | 1320 | * @param $parsedUrl array |
1316 | 1321 | * Result of parseUrl() or wfParseUrl() |
1317 | 1322 | */ |
Index: trunk/extensions/MobileFrontend/MobileFrontend.php |
— | — | @@ -83,8 +83,8 @@ |
84 | 84 | * This will be used to transcode regular URLs into mobile URLs for the |
85 | 85 | * mobile view. |
86 | 86 | * |
87 | | - * It's possible to specify the 'mobileness' of the URL either in the |
88 | | - * host portion, or in the path portion. |
| 87 | + * It's possible to specify the 'mobileness' of the URL in the host portion of |
| 88 | + * the URL. |
89 | 89 | * |
90 | 90 | * You can either statically or dynamically create the host-portion of your |
91 | 91 | * mobile URL. To statically create it, just set $wgMobileUrlTemplate to |
— | — | @@ -99,14 +99,6 @@ |
100 | 100 | * So, if you wanted a mobile URL scheme that turned "en.wikipedia.org" into |
101 | 101 | * "en.m.wikipedia.org", your URL template would look like: |
102 | 102 | * %h0.m.%h1.%h2 |
103 | | - * |
104 | | - * If you prefer to use template the path, be sure to exclude $wgScriptPath. |
105 | | - * You can specify where the non-mobile path portion appears with the token %p. |
106 | | - * For instance: |
107 | | - * $wgMobileUrlTemplate = "/mobile/%p"; |
108 | | - * |
109 | | - * At the moment, this might behave strangely if you want to template both the |
110 | | - * host and path portions of the URL. |
111 | 103 | */ |
112 | 104 | $wgMobileUrlTemplate = '%h0.m.%h1.%h2'; |
113 | 105 | |