From 8a8a521b3c4af39ca8d3fb29d1e322cca230b3c2 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sat, 7 Aug 2010 22:46:19 +0200 Subject: better link checking --- module/HookManager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'module/HookManager.py') 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: -- cgit v1.2.3