Toggle navigation
Toggle navigation
This project
Loading...
Sign in
wangshusheng
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
hf
2016-03-15 16:09:44 +0800
Commit
9cf4c6b8ac39c44bfbdf7ea6a8e71f26695fbbf8
1 parent
aeaf3f4f
code review by fei.hong: fixes bug to www redirect url
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
library/WebPlugin/Mobile.php
library/WebPlugin/Mobile.php
View file @
9cf4c6b
...
...
@@ -75,6 +75,9 @@ class Mobile
if
(
$uri
===
'/woman'
)
{
$uri
=
'/girls'
;
}
if
(
$host
===
'www.yohobuy.com'
)
{
$url
=
'm.yohobuy.com'
.
$uri
;
}
$url
=
strtr
(
$host
,
array
(
'.yohobuy.com'
=>
'.m.yohobuy.com'
))
.
$uri
;
...
...
Please
register
or
login
to post a comment