mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 13:02:15 +09:00
모듈 아래에 네임스페이스를 넣을 경우 module_path, module 변수가 잘못 세팅되는 문제 수정
This commit is contained in:
parent
b27617c854
commit
8e4bfdc1a7
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ class ModuleObject extends BaseObject
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$class_filename = (new ReflectionClass($class_name))->getFileName();
|
$class_filename = (new ReflectionClass($class_name))->getFileName();
|
||||||
preg_match('!^(.+[/\\\\]([^/\\\\]+)[/\\\\])[^/\\\\]+$!', $class_filename, $matches);
|
preg_match('!^(.+[/\\\\]modules[/\\\\]([^/\\\\]+)[/\\\\])!', $class_filename, $matches);
|
||||||
$module_path = $matches[1];
|
$module_path = $matches[1];
|
||||||
$module = $matches[2];
|
$module = $matches[2];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue