mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-28 23:03:25 +09:00
Convert group image mark to relative URL
This commit is contained in:
parent
77c0fcd139
commit
577773af0a
1 changed files with 4 additions and 0 deletions
|
|
@ -1047,6 +1047,10 @@ class memberModel extends member
|
|||
$info->title = $group_info->title;
|
||||
$info->description = $group_info->description;
|
||||
$info->src = $group_info->image_mark;
|
||||
if(parse_url($info->src, PHP_URL_HOST) === parse_url(Context::getDefaultUrl(), PHP_URL_HOST))
|
||||
{
|
||||
$info->src = preg_replace('@^https?://[^/]+@i', '', $info->src);
|
||||
}
|
||||
$GLOBALS['__member_info__']['group_image_mark'][$member_srl] = $info;
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue