Changeset View
Changeset View
Standalone View
Standalone View
src/applications/metamta/storage/PhabricatorMetaMTAMail.php
| Show First 20 Lines • Show All 170 Lines • ▼ Show 20 Lines | public function getTranslation(array $objects) { | ||||
| if (!$return) { | if (!$return) { | ||||
| $return = $default_translation; | $return = $default_translation; | ||||
| } | } | ||||
| return $return; | return $return; | ||||
| } | } | ||||
| public function addPHIDHeaders($name, array $phids) { | public function addPHIDHeaders($name, array $phids) { | ||||
| $phids = array_unique($phids); | |||||
| foreach ($phids as $phid) { | foreach ($phids as $phid) { | ||||
| $this->addHeader($name, '<'.$phid.'>'); | $this->addHeader($name, '<'.$phid.'>'); | ||||
| } | } | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function addHeader($name, $value) { | public function addHeader($name, $value) { | ||||
| $this->parameters['headers'][] = array($name, $value); | $this->parameters['headers'][] = array($name, $value); | ||||
| ▲ Show 20 Lines • Show All 809 Lines • Show Last 20 Lines | |||||