r101391 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r101390‎ | r101391 | r101392 >
Date:19:42, 31 October 2011
Author:preilly
Status:ok
Tags:
Comment:
Modified paths:
  • /branches/wmf/1.18wmf1/extensions/MobileFrontend/MobileFrontend.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.18wmf1/extensions/MobileFrontend/MobileFrontend.php
@@ -356,8 +356,8 @@
357357 $hostParts = explode( '.', $parsedUrl['host'] );
358358 $parsedUrl['host'] = $hostParts[0] . $wgMobileDomain . $hostParts[1] . '.' . $hostParts[2];
359359 }
360 - $fragmentDelimiter = ( !empty( $parsedUrl['fragment'] ) ) ? '#' : '';
361 - $queryDelimiter = ( !empty( $parsedUrl['query'] ) ) ? '?' : '';
 360+ $fragmentDelimiter = ( isset( $parsedUrl['fragment'] ) && $parsedUrl['fragment'] != null ) ? '#' : '';
 361+ $queryDelimiter = ( isset( $parsedUrl['query'] ) && $parsedUrl['query'] != null ) ? '?' : '';
362362 $languageUrl = $parsedUrl['scheme'] . $parsedUrl['delimiter'] . $parsedUrl['host'] . $parsedUrl['path'] . $queryDelimiter . $parsedUrl['query'] . $fragmentDelimiter . $parsedUrl['fragment'];
363363
364364 $languageUrls[] = array(

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r101390fix use of emptypreilly19:42, 31 October 2011

Status & tagging log