From 72e7e9b9df140bdd12f3e078c555c9b8a8d32d4e Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Wed, 22 Sep 2010 16:26:19 +0200 Subject: [PATCH] Re-activate $_hooksLoaded and don't try to autoload hook classes. --- framework/Core/lib/Horde.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/framework/Core/lib/Horde.php b/framework/Core/lib/Horde.php index 64f8de963..901991d14 100644 --- a/framework/Core/lib/Horde.php +++ b/framework/Core/lib/Horde.php @@ -1681,13 +1681,14 @@ HTML; $error = false; $hook_class = $app . '_Hooks'; - if (!class_exists($hook_class)) { + if (empty(self::$_hooksLoaded[$app]) && !class_exists($hook_class, false)) { try { self::loadConfiguration('hooks.php', null, $app); } catch (Horde_Exception $e) {} + self::$_hooksLoaded[$app] = true; } - if (!class_exists($hook_class) || + if (!class_exists($hook_class, false) || !($hook_ob = new $hook_class) || !method_exists($hook_ob, $hook)) { throw new Horde_Exception_HookNotSet(); -- 2.11.0