https://www.mediawiki.org/wiki/Special:Code/MediaWiki/114716
Revision: 114716
Author: awjrichards
Date: 2012-04-04 19:11:50 +0000 (Wed, 04 Apr 2012)
Log Message:
-----------
MFG Change-Id: I5bfa27fd46de233cf8f08eee60575b9381151ac6
Modified Paths:
--------------
branches/wmf/1.19wmf1/extensions/MobileFrontend/MobileFrontend.body.php
Modified:
branches/wmf/1.19wmf1/extensions/MobileFrontend/MobileFrontend.body.php
===================================================================
--- branches/wmf/1.19wmf1/extensions/MobileFrontend/MobileFrontend.body.php
2012-04-04 18:46:00 UTC (rev 114715)
+++ branches/wmf/1.19wmf1/extensions/MobileFrontend/MobileFrontend.body.php
2012-04-04 19:11:50 UTC (rev 114716)
@@ -1341,7 +1341,7 @@
$mobileToken = preg_replace( "/%h[0-9]\.{0,1}/", "",
$mobileUrlHostTemplate );
// replace the mobile token with nothing, resulting in the
normal hostname
- $parsedUrl['host'] = str_replace( $mobileToken, '',
$parsedUrl['host'] );
+ $parsedUrl['host'] = str_replace( '.' . $mobileToken, '.',
$parsedUrl['host'] );
}
/**
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs