Authored by hf

code review by fei.hong: fixes bug to www redirect url

@@ -76,7 +76,7 @@ class Mobile @@ -76,7 +76,7 @@ class Mobile
76 $uri = '/girls'; 76 $uri = '/girls';
77 } 77 }
78 if ($host === 'www.yohobuy.com') { 78 if ($host === 'www.yohobuy.com') {
79 - $url = 'm.yohobuy.com' . $uri; 79 + return 'm.yohobuy.com' . $uri;
80 } 80 }
81 81
82 $url = strtr($host, array('.yohobuy.com' => '.m.yohobuy.com')) . $uri; 82 $url = strtr($host, array('.yohobuy.com' => '.m.yohobuy.com')) . $uri;