Index: trunk/extensions/MobileFrontend/MobileFrontend.php |
— | — | @@ -393,9 +393,11 @@ |
394 | 394 | |
395 | 395 | $languageUrl = $parsedUrl['scheme'] . $parsedUrl['delimiter'] . $parsedUrl['host'] . $parsedUrl['path']; |
396 | 396 | if ( isset( $parsedUrl['query'] ) ) { |
397 | | - $languageUrl .= $queryDelimiter . $parsedUrl['query'] . $fragmentDelimiter . $parsedUrl['fragment']; |
| 397 | + $languageUrl .= $queryDelimiter . $parsedUrl['query']; |
398 | 398 | } |
399 | | - |
| 399 | + if ( isset( $parsedUrl['fragment'] ) ) { |
| 400 | + $languageUrl .= $fragmentDelimiter . $parsedUrl['fragment']; |
| 401 | + } |
400 | 402 | $languageUrls[] = array( |
401 | 403 | 'href' => $languageUrl, |
402 | 404 | 'text' => ( $wgContLang->getLanguageName( $nt->getInterwiki() ) != '' |
— | — | @@ -963,7 +965,7 @@ |
964 | 966 | ); |
965 | 967 | $disableTemplate->setByArray( $options ); |
966 | 968 | $disableHtml = $disableTemplate->getHTML(); |
967 | | - |
| 969 | + |
968 | 970 | $contentHtml = $disableHtml; |
969 | 971 | $noticeHtml = ( !empty( $noticeHtml ) ) ? $noticeHtml : ''; |
970 | 972 | $applicationTemplate = $this->getApplicationTemplate(); |
— | — | @@ -1333,7 +1335,7 @@ |
1334 | 1336 | } |
1335 | 1337 | |
1336 | 1338 | $ptAnonLogin = $this->doc->getElementById( 'pt-anonlogin' ); |
1337 | | - |
| 1339 | + |
1338 | 1340 | if ( !$ptAnonLogin ) { |
1339 | 1341 | $ptAnonLogin = $this->doc->getElementById( 'pt-login' ); |
1340 | 1342 | } |