mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-17 17:32:15 +09:00
NOISSUE 설치 시 문제 수정.
This commit is contained in:
parent
68517aa681
commit
bbc50b994f
1 changed files with 2 additions and 3 deletions
|
|
@ -93,18 +93,17 @@ class moduleModel extends module
|
|||
$mid = Context::get('mid');
|
||||
|
||||
// Set up
|
||||
// test.xe.com
|
||||
$domain = '';
|
||||
if($default_url && $default_url_parse['host'] != $request_url_parse['host'])
|
||||
{
|
||||
$url_info = parse_url($request_url);
|
||||
$hostname = $url_info['host'];
|
||||
$path = $url_info['path'];
|
||||
if(substr_compare($path, '/', -1) === 0) $path = substr($path, 0, -1);
|
||||
if(strlen($path) >= 1 && substr_compare($path, '/', -1) === 0) $path = substr($path, 0, -1);
|
||||
|
||||
$domain = sprintf('%s%s%s', $hostname, $url_info['port']&&$url_info['port']!=80?':'.$url_info['port']:'',$path);
|
||||
}
|
||||
// xe.com/blog
|
||||
|
||||
if($domain === '')
|
||||
{
|
||||
if(!$vid) $vid = $mid;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue