diff options
author | Simon Rettberg | 2016-08-29 16:57:38 +0200 |
---|---|---|
committer | Simon Rettberg | 2016-08-29 16:57:38 +0200 |
commit | 1ea14f191d4ddd51e2df8ea30e4e3ca24734d172 (patch) | |
tree | e4e484c0077ea5a1c4f9cc00049655232904be11 /inc/module.inc.php | |
parent | make roomplanner 100% even on big screens and fix bug. (diff) | |
download | slx-admin-1ea14f191d4ddd51e2df8ea30e4e3ca24734d172.tar.gz slx-admin-1ea14f191d4ddd51e2df8ea30e4e3ca24734d172.tar.xz slx-admin-1ea14f191d4ddd51e2df8ea30e4e3ca24734d172.zip |
[baseconfig*] Fix translation hook to only consider the current module
Diffstat (limited to 'inc/module.inc.php')
-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() |