r114716 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r114715‎ | r114716 | r114717 >
Date:19:11, 4 April 2012
Author:awjrichards
Status:deferred
Tags:
Comment:
MFG Change-Id: I5bfa27fd46de233cf8f08eee60575b9381151ac6
Modified paths:
  • /branches/wmf/1.19wmf1/extensions/MobileFrontend/MobileFrontend.body.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.19wmf1/extensions/MobileFrontend/MobileFrontend.body.php
@@ -1341,7 +1341,7 @@
13421342 $mobileToken = preg_replace( "/%h[0-9]\.{0,1}/", "", $mobileUrlHostTemplate );
13431343
13441344 // replace the mobile token with nothing, resulting in the normal hostname
1345 - $parsedUrl['host'] = str_replace( $mobileToken, '', $parsedUrl['host'] );
 1345+ $parsedUrl['host'] = str_replace( '.' . $mobileToken, '.', $parsedUrl['host'] );
13461346 }
13471347
13481348 /**

Status & tagging log