From 1dfce21bd6e9fcaa2b9f4811b9ec40c42592de5d Mon Sep 17 00:00:00 2001 From: Rui Carneiro Date: Fri, 28 Jan 2011 11:22:27 +0000 Subject: [PATCH] Bug #9542: Fixed getPermission argument name. Signed-off-by: Michael M Slusarz --- imp/lib/Compose.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'))); } } -- 2.11.0