Authored by hf

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

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