mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-09 05:38:39 +00:00
optimize module loaded
This commit is contained in:
parent
a91ee19ff8
commit
013ce912f9
|
|
@ -700,7 +700,7 @@ final class ModuleManager
|
||||||
public function get(string $module) : ModuleAbstract
|
public function get(string $module) : ModuleAbstract
|
||||||
{
|
{
|
||||||
$name = $this->generateModuleName($module);
|
$name = $this->generateModuleName($module);
|
||||||
if (!isset($this->running[$name])) {
|
if (!array_key_exists($name, $this->running)) {
|
||||||
$this->initModule($module);
|
$this->initModule($module);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user