From b1913d87addc246050ca6a07509abca602af66d7 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Tue, 28 Dec 2010 12:55:04 +0100 Subject: [PATCH] Revert "API calls should no longer be throwing PEAR_Errors in H4" This reverts commit d48f5b4547eddd1f2014c715b1d70d7dd5303922. The actually do, until someone goes through all Api.php files and fixes that. --- framework/Core/lib/Horde/Registry.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/framework/Core/lib/Horde/Registry.php b/framework/Core/lib/Horde/Registry.php index 5b345560a..3ce295d55 100644 --- a/framework/Core/lib/Horde/Registry.php +++ b/framework/Core/lib/Horde/Registry.php @@ -959,6 +959,9 @@ class Horde_Registry try { $result = call_user_func_array(array($api, $call), $args); + if ($result instanceof PEAR_Error) { + throw new Horde_Exception_Prior($result); + } } catch (Horde_Exception $e) { $result = $e; } -- 2.11.0