From: Rui Carneiro Date: Fri, 28 Jan 2011 11:22:27 +0000 (+0000) Subject: Bug #9542: Fixed getPermission argument name. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=1dfce21bd6e9fcaa2b9f4811b9ec40c42592de5d;p=horde.git Bug #9542: Fixed getPermission argument name. Signed-off-by: Michael M Slusarz --- diff --git a/imp/lib/Compose.php b/imp/lib/Compose.php index 8e4a27118..032e38648 100644 --- a/imp/lib/Compose.php +++ b/imp/lib/Compose.php @@ -819,7 +819,7 @@ class IMP_Compose implements ArrayAccess, Countable, Iterator if (!$perms->hasAppPermission('max_timelimit', array('opts' => array('value' => $recipients)))) { Horde::permissionDeniedError('imp', 'max_timelimit'); - throw new IMP_Compose_Exception(sprintf(_("You are not allowed to send messages to more than %d recipients within %d hours."), $perms->getPermissions('max_timelimit'), $GLOBALS['conf']['sentmail']['params']['limit_period'])); + throw new IMP_Compose_Exception(sprintf(_("You are not allowed to send messages to more than %d recipients within %d hours."), $perms->getPermissions('imp:max_timelimit'), $GLOBALS['conf']['sentmail']['params']['limit_period'])); } /* Pass to hook to allow alteration of message details. */ @@ -1029,7 +1029,7 @@ class IMP_Compose implements ArrayAccess, Countable, Iterator if (!$perms->hasAppPermission('max_recipients', array('opts' => array('value' => $recipients)))) { Horde::permissionDeniedError('imp', 'max_recipients'); - throw new IMP_Compose_Exception(sprintf(_("You are not allowed to send messages to more than %d recipients."), $perms->getPermissions('max_recipients'))); + throw new IMP_Compose_Exception(sprintf(_("You are not allowed to send messages to more than %d recipients."), $perms->getPermissions('imp:max_recipients'))); } }