From 4a0634633b56b2ca6f96b938aebde9d51ff53e5f Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Wed, 25 Feb 2009 21:59:30 -0700 Subject: [PATCH] Throw Horde_Exception here instead of Exception. --- imp/acl.php | 2 +- imp/lib/IMAP/ACL.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/imp/acl.php b/imp/acl.php index 88df9989d..c6ce06ace 100644 --- a/imp/acl.php +++ b/imp/acl.php @@ -24,7 +24,7 @@ if ($prefs->isLocked('acl') || empty($_SESSION['imp']['acl'])) { try { $ACLDriver = &IMP_IMAP_ACL::singleton(); -} catch (Exception $e) { +} catch (Horde_Exception $e) { $notification->push($error, _("This server does not support sharing folders.")); header('Location: ' . $prefs_url); exit; diff --git a/imp/lib/IMAP/ACL.php b/imp/lib/IMAP/ACL.php index 7b10824df..ca800a878 100644 --- a/imp/lib/IMAP/ACL.php +++ b/imp/lib/IMAP/ACL.php @@ -56,12 +56,12 @@ class IMP_IMAP_ACL protected function __construct() { if ($_SESSION['imp']['protocol'] != 'imap') { - throw new Exception(_("ACL requires an IMAP server.")); + throw new Horde_Exception(_("ACL requires an IMAP server.")); } $capability = $GLOBALS['imp_imap']->ob->queryCapability('ACL'); if (!$capability) { - throw new Exception(_("IMAP server does not support ACLs.")); + throw new Horde_Exception(_("IMAP server does not support ACLs.")); } $rfc4314 = $GLOBALS['imp_imap']->ob->queryCapability('RIGHTS'); -- 2.11.0