Bug #9542: Fixed getPermission argument name.
authorRui Carneiro <rui.carneiro@portugalmail.net>
Fri, 28 Jan 2011 11:22:27 +0000 (11:22 +0000)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 28 Jan 2011 17:10:41 +0000 (10:10 -0700)
Signed-off-by: Michael M Slusarz <slusarz@curecanti.org>
imp/lib/Compose.php

index 8e4a271..032e386 100644 (file)
@@ -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')));
             }
         }