code review by fei.hong: fixes bug to www redirect url
Showing
1 changed file
with
3 additions
and
0 deletions
@@ -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 |
-
Please register or login to post a comment