From: Jan Schneider Date: Tue, 28 Dec 2010 11:55:04 +0000 (+0100) Subject: Revert "API calls should no longer be throwing PEAR_Errors in H4" X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=b1913d87addc246050ca6a07509abca602af66d7;p=horde.git 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. --- 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; }