Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
hf
10 years ago
Commit
e4846db22805fc7bf19bdd3bc3d663e1210fd404
1 parent
23a5584c
modify Images.php use regex to php function
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
library/Plugin/Helpers.php
library/Plugin/Images.php
library/Plugin/Helpers.php
View file @
e4846db
...
...
@@ -67,7 +67,7 @@ class Helpers
*/
public
static
function
getFilterUrl
(
$url
)
{
$url
=
strtr
(
$url
,
array
(
'.m.yohobuy.com'
=>
SUB_DOMAIN
,
OLD_MAIN
=>
SITE_MAIN
));
$url
=
strtr
(
$url
,
array
(
'.m.yohobuy.com'
=>
SUB_DOMAIN
,
OLD_MAIN
=>
SITE_MAIN
,
'www.yohobuy.com'
=>
SITE_MAIN
));
$filter
=
strstr
(
$url
,
'openby:yohobuy='
,
true
);
if
(
$filter
)
{
return
rtrim
(
rtrim
(
$filter
,
'?'
),
'&'
);
...
...
library/Plugin/Images.php
View file @
e4846db
...
...
@@ -48,7 +48,7 @@ class Images
*/
public
static
function
getSourceUrl
(
$fileName
,
$bucket
=
'yhfair'
)
{
if
(
preg_match
(
'|http://|'
,
$fileName
)
){
if
(
stripos
(
$fileName
,
'http://'
)
===
0
){
return
$fileName
;
}
$domain
=
self
::
getDomain
(
$bucket
,
$fileName
);
...
...
Please
register
or
login
to post a comment