Differential D17086 Diff 41102 src/applications/transactions/storage/PhabricatorApplicationTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/storage/PhabricatorApplicationTransaction.php
| Show First 20 Lines • Show All 954 Lines • ▼ Show 20 Lines | switch ($this->getTransactionType()) { | ||||
| $this->renderHandleLink($author_phid)); | $this->renderHandleLink($author_phid)); | ||||
| } | } | ||||
| case PhabricatorTransactions::TYPE_CUSTOMFIELD: | case PhabricatorTransactions::TYPE_CUSTOMFIELD: | ||||
| $field = $this->getTransactionCustomField(); | $field = $this->getTransactionCustomField(); | ||||
| if ($field) { | if ($field) { | ||||
| return $field->getApplicationTransactionTitle($this); | return $field->getApplicationTransactionTitle($this); | ||||
| } else { | } else { | ||||
| $developer_mode = 'phabricator.developer-mode'; | |||||
| $is_developer = PhabricatorEnv::getEnvConfig($developer_mode); | |||||
| if ($is_developer) { | |||||
| return pht( | |||||
| '%s edited a custom field (with key "%s").', | |||||
| $this->renderHandleLink($author_phid), | |||||
| $this->getMetadata('customfield:key')); | |||||
| } else { | |||||
| return pht( | return pht( | ||||
| '%s edited a custom field.', | '%s edited a custom field.', | ||||
| $this->renderHandleLink($author_phid)); | $this->renderHandleLink($author_phid)); | ||||
| } | } | ||||
| } | |||||
| case PhabricatorTransactions::TYPE_TOKEN: | case PhabricatorTransactions::TYPE_TOKEN: | ||||
| if ($old && $new) { | if ($old && $new) { | ||||
| return pht( | return pht( | ||||
| '%s updated a token.', | '%s updated a token.', | ||||
| $this->renderHandleLink($author_phid)); | $this->renderHandleLink($author_phid)); | ||||
| } else if ($old) { | } else if ($old) { | ||||
| return pht( | return pht( | ||||
| ▲ Show 20 Lines • Show All 688 Lines • Show Last 20 Lines | |||||