mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 17:51:40 +09:00
Fix #2241 inconsistent handling of class name specified in event handler
This commit is contained in:
parent
1c0f3cd2e2
commit
3e09ca63a9
2 changed files with 2 additions and 2 deletions
|
|
@ -292,7 +292,7 @@ class ModuleActionParser extends BaseParser
|
|||
{
|
||||
if (isset($attrs[$key]))
|
||||
{
|
||||
if (count($info->namespaces) && str_contains($attrs['class'], '\\'))
|
||||
if (count($info->namespaces) && !preg_match('/^(controller|model|view|mobile|api|wap|class)$/', $attrs['class']))
|
||||
{
|
||||
$namespace = '\\' . array_first($info->namespaces) . '\\';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue