Index: trunk/extensions/MobileFrontend/MobileFrontend.php |
— | — | @@ -304,12 +304,8 @@ |
305 | 305 | self::$disableImagesURL = $wgRequest->escapeAppendQuery( 'disableImages=1' ); |
306 | 306 | self::$enableImagesURL = $wgRequest->escapeAppendQuery( 'enableImages=1' ); |
307 | 307 | self::$disableMobileSiteURL = $wgRequest->escapeAppendQuery( 'mobileaction=disable_mobile_site' ); |
308 | | - $parsedUrl = wfParseUrl( $wgRequest->getFullRequestURL() ); |
309 | | - $parsedUrl['host'] = str_replace( $wgMobileDomain, '.', $parsedUrl['host'] ); |
310 | | - $parsedUrl['query'] = $this->removeQueryStringParameter( '?mobileaction=view_normal_site&' . $parsedUrl['query'], 'useformat' ); |
311 | | - $fragmentDelimiter = ( !empty( $parsedUrl['fragment'] ) ) ? '#' : ''; |
312 | | - self::$viewNormalSiteURL = $parsedUrl['scheme'] . '://' . $parsedUrl['host'] . $parsedUrl['path'] . $parsedUrl['query'] . $fragmentDelimiter . $parsedUrl['fragment']; |
313 | | - self::$currentURL = $wgRequest->getFullRequestURL(); |
| 308 | + self::$viewNormalSiteURL = $wgRequest->escapeAppendQuery( 'mobileaction=view_normal_site' ); |
| 309 | + self::$currentURL = $wgRequest->getFullRequestURL(); |
314 | 310 | self::$leaveFeedbackURL = $wgRequest->escapeAppendQuery( 'mobileaction=leave_feedback' ); |
315 | 311 | |
316 | 312 | $skin = $wgUser->getSkin(); |