mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 11:11:39 +09:00
issue 2150 fixed host used to check domain.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.3@10900 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
cbe31112b5
commit
d3bfe624b1
1 changed files with 3 additions and 1 deletions
|
|
@ -70,13 +70,15 @@
|
|||
function getDefaultMid() {
|
||||
$default_url = preg_replace('/\/$/','',Context::getDefaultUrl());
|
||||
$request_url = preg_replace('/\/$/','',Context::getRequestUri());
|
||||
$default_url_parse = parse_url($default_url);
|
||||
$request_url_parse = parse_url($request_url);
|
||||
$vid = Context::get('vid');
|
||||
$mid = Context::get('mid');
|
||||
|
||||
// Set up
|
||||
// test.xe.com
|
||||
$domain = '';
|
||||
if($default_url && $default_url != $request_url) {
|
||||
if($default_url && $default_url_parse['host'] != $request_url_parse['host']) {
|
||||
$url_info = parse_url($request_url);
|
||||
$hostname = $url_info['host'];
|
||||
$path = preg_replace('/\/$/','',$url_info['path']);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue