summaryrefslogtreecommitdiffstats
path: root/system/libraries/Email.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-02-24 15:36:25 +0100
committerAndrey Andreev <narf@devilix.net>2014-02-24 15:36:25 +0100
commitdea61776dbb33f4414d5c5f17bbbc6a9efaa589c (patch)
treeee69dc1bbb3a739323eda67d566272dd9e7a509f /system/libraries/Email.php
parent2ab4ffbae66c4db68c3dadbbc8944d09ded17ec9 (diff)
[ci skip] A tiny improvement in CI_Email
Diffstat (limited to 'system/libraries/Email.php')
-rw-r--r--system/libraries/Email.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/system/libraries/Email.php b/system/libraries/Email.php
index 3c3c49e78..fac8a49d5 100644
--- a/system/libraries/Email.php
+++ b/system/libraries/Email.php
@@ -376,7 +376,13 @@ class CI_Email {
*
* @var string[]
*/
- protected $_priorities = array('1 (Highest)', '2 (High)', '3 (Normal)', '4 (Low)', '5 (Lowest)');
+ protected $_priorities = array(
+ 1 => '1 (Highest)',
+ 2 => '2 (High)',
+ 3 => '3 (Normal)',
+ 4 => '4 (Low)',
+ 5 => '5 (Lowest)'
+ );
// --------------------------------------------------------------------
@@ -1241,7 +1247,7 @@ class CI_Email {
{
$this->set_header('X-Sender', $this->clean_email($this->_headers['From']));
$this->set_header('X-Mailer', $this->useragent);
- $this->set_header('X-Priority', $this->_priorities[$this->priority - 1]);
+ $this->set_header('X-Priority', $this->_priorities[$this->priority]);
$this->set_header('Message-ID', $this->_get_message_id());
$this->set_header('Mime-Version', '1.0');
}