mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
Implement loading documents from other modules
This commit is contained in:
parent
264c6f0e74
commit
ba971f7b5a
6 changed files with 27 additions and 4 deletions
|
|
@ -693,6 +693,11 @@ class ModuleHandler extends Handler
|
|||
{
|
||||
return null;
|
||||
}
|
||||
// If the requested mid is set to include documents from other modules, preserve the current mid.
|
||||
elseif($this->mid && ($mid_info = ModuleModel::getModuleInfoByMid($this->mid)) && $mid_info->include_modules && in_array($module_info->module_srl, explode(',', $mid_info->include_modules)))
|
||||
{
|
||||
return $mid_info;
|
||||
}
|
||||
// If this is a GET request, redirect to the correct mid.
|
||||
elseif(Context::getRequestMethod() === 'GET')
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue