mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Fix most links pointing to default domain even when unregistered domain action is set to "display"
This commit is contained in:
parent
cafddbfc67
commit
4e6591af13
2 changed files with 6 additions and 2 deletions
|
|
@ -242,7 +242,7 @@ class Context
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$site_module_info = new stdClass;
|
$site_module_info = new stdClass;
|
||||||
$site_module_info->domain = $_SERVER['HTTP_HOST'];
|
$site_module_info->domain = Rhymix\Framework\URL::getCurrentDomain();
|
||||||
$site_module_info->security = RX_SSL ? 'always' : 'none';
|
$site_module_info->security = RX_SSL ? 'always' : 'none';
|
||||||
$site_module_info->settings = new stdClass;
|
$site_module_info->settings = new stdClass;
|
||||||
$site_module_info->is_default_replaced = true;
|
$site_module_info->is_default_replaced = true;
|
||||||
|
|
|
||||||
|
|
@ -147,7 +147,11 @@ class ModuleHandler extends Handler
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
case 'display':
|
case 'display':
|
||||||
// pass
|
$site_module_info->domain_srl = -1;
|
||||||
|
$site_module_info->domain = Rhymix\Framework\URL::getCurrentDomain();
|
||||||
|
$site_module_info->is_default_domain = 'N';
|
||||||
|
$site_module_info->is_default_replaced = true;
|
||||||
|
Context::set('site_module_info', $site_module_info);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue