Index: trunk/extensions/MobileFrontend/MobileFrontend.php |
— | — | @@ -356,8 +356,8 @@ |
357 | 357 | $hostParts = explode( '.', $parsedUrl['host'] ); |
358 | 358 | $parsedUrl['host'] = $hostParts[0] . $wgMobileDomain . $hostParts[1] . '.' . $hostParts[2]; |
359 | 359 | } |
360 | | - $fragmentDelimiter = ( isset( $parsedUrl['fragment'] ) && $parsedUrl['fragment'] != null ) ? '#' : ''; |
361 | | - $queryDelimiter = ( isset( $parsedUrl['query'] ) && $parsedUrl['query'] != null ) ? '?' : ''; |
| 360 | + $fragmentDelimiter = ( isset( $parsedUrl['fragment'] ) && $parsedUrl['fragment'] !== null ) ? '#' : ''; |
| 361 | + $queryDelimiter = ( isset( $parsedUrl['query'] ) && $parsedUrl['query'] !== null ) ? '?' : ''; |
362 | 362 | $languageUrl = $parsedUrl['scheme'] . $parsedUrl['delimiter'] . $parsedUrl['host'] . $parsedUrl['path'] . $queryDelimiter . $parsedUrl['query'] . $fragmentDelimiter . $parsedUrl['fragment']; |
363 | 363 | |
364 | 364 | $languageUrls[] = array( |