summaryrefslogtreecommitdiffstats
path: root/module/HookManager.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/HookManager.py')
-rw-r--r--module/HookManager.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/HookManager.py b/module/HookManager.py
index 503b9f77d..7cd903403 100644
--- a/module/HookManager.py
+++ b/module/HookManager.py
@@ -49,8 +49,8 @@ class HookManager():
try:
#hookClass = getattr(plugin, plugin.__name__)
- plugin = pluginClass(self.core)
- if plugin.getConfig("load"):
+ if self.core.config.getPlugin(pluginClass.__name__, "load"):
+ plugin = pluginClass(self.core)
plugins.append(plugin)
self.log.info(_("%s loaded, activated %s") % (pluginClass.__name__, plugin.isActivated() ))
except: