diff options
Diffstat (limited to 'inc')
-rw-r--r-- | inc/module.inc.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/module.inc.php b/inc/module.inc.php index 960a0a87..597cfb57 100644 --- a/inc/module.inc.php +++ b/inc/module.inc.php @@ -175,7 +175,7 @@ class Module public function activate($depth = 1) { if ($this->activated !== false || $this->depsMissing) - return; + return $this->activated !== false; $this->activated = $depth; spl_autoload_register(function($class) { $file = 'modules/' . $this->name . '/inc/' . preg_replace('/[^a-z0-9]/', '', strtolower($class)) . '.inc.php'; @@ -189,6 +189,7 @@ class Module $get->activate($depth + 1); } } + return true; } public function getDependencies() |