From 1ea14f191d4ddd51e2df8ea30e4e3ca24734d172 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 29 Aug 2016 16:57:38 +0200 Subject: [baseconfig*] Fix translation hook to only consider the current module --- inc/module.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'inc/module.inc.php') 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() -- cgit v1.2.3-55-g7522