mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Fix error handling issues
This commit is contained in:
parent
936568a8a5
commit
978d3d167a
4 changed files with 37 additions and 12 deletions
|
|
@ -78,12 +78,16 @@ class ModuleInfoParser extends BaseParser
|
|||
}
|
||||
|
||||
// Add information about actions.
|
||||
$action_info = ModuleActionParser::loadXML(strtr($filename, ['info.xml' => 'module.xml']));
|
||||
$info->admin_index_act = $action_info->admin_index_act;
|
||||
$info->default_index_act = $action_info->default_index_act;
|
||||
$info->setup_index_act = $action_info->setup_index_act;
|
||||
$info->simple_setup_index_act = $action_info->simple_setup_index_act;
|
||||
$info->error_handlers = $action_info->error_handlers ?: [];
|
||||
$action_filename = strtr($filename, ['info.xml' => 'module.xml']);
|
||||
if (file_exists($action_filename))
|
||||
{
|
||||
$action_info = ModuleActionParser::loadXML($action_filename);
|
||||
$info->admin_index_act = $action_info->admin_index_act;
|
||||
$info->default_index_act = $action_info->default_index_act;
|
||||
$info->setup_index_act = $action_info->setup_index_act;
|
||||
$info->simple_setup_index_act = $action_info->simple_setup_index_act;
|
||||
$info->error_handlers = $action_info->error_handlers ?: [];
|
||||
}
|
||||
|
||||
// Return the complete result.
|
||||
return $info;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue