Skip to content

Commit

Permalink
Shorten const name
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Aug 18, 2019
1 parent 82fa2b1 commit 05dba5a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Horde/ActiveSync/Imap/Message.php
Expand Up @@ -33,7 +33,7 @@
*/
class Horde_ActiveSync_Imap_Message
{
const ATTACHMENT_OPTIONS_DECODE_TNEF = "decode_tnef";
const OPTIONS_DECODE_TNEF = "decode_tnef";

/**
* Message data.
Expand Down Expand Up @@ -114,7 +114,7 @@ public function __construct(
$this->_mbox = $mbox;
$this->_data = $data;
$this->_options = array_merge(
array(self::ATTACHMENT_OPTIONS_DECODE_TNEF => true),
array(self::OPTIONS_DECODE_TNEF => true),
$options
);

Expand Down Expand Up @@ -465,7 +465,7 @@ protected function _prepareTnef()
$map = $this->basePart->contentTypeMap();
foreach ($map as $id => $type) {
if ($type == 'application/ms-tnef' &&
!empty($this->_options[self::ATTACHMENT_OPTIONS_DECODE_TNEF])) {
!empty($this->_options[self::OPTIONS_DECODE_TNEF])) {

$mpart = $this->getMimePart($id);
$tnef_part = $this->_decodeTnefData($mpart);
Expand Down

0 comments on commit 05dba5a

Please sign in to comment.