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. */
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')));
}
}