Changeset View
Changeset View
Standalone View
Standalone View
src/applications/badges/storage/PhabricatorBadgesTransaction.php
| Show First 20 Lines • Show All 99 Lines • ▼ Show 20 Lines | switch ($type) { | ||||
| return pht( | return pht( | ||||
| '%s updated the icon for this badge from "%s" to "%s".', | '%s updated the icon for this badge from "%s" to "%s".', | ||||
| $this->renderHandleLink($author_phid), | $this->renderHandleLink($author_phid), | ||||
| $icon_old, | $icon_old, | ||||
| $icon_new); | $icon_new); | ||||
| } | } | ||||
| break; | break; | ||||
| case self::TYPE_QUALITY: | case self::TYPE_QUALITY: | ||||
| $qual_new = PhabricatorBadgesQuality::getQualityName($new); | |||||
| $qual_old = PhabricatorBadgesQuality::getQualityName($old); | |||||
| if ($old === null) { | if ($old === null) { | ||||
| return pht( | return pht( | ||||
| '%s set the quality for this badge as "%s".', | '%s set the quality for this badge as "%s".', | ||||
| $this->renderHandleLink($author_phid), | $this->renderHandleLink($author_phid), | ||||
| $new); | $new); | ||||
| } else { | } else { | ||||
| $qual_new = PhabricatorBadgesQuality::getQualityName($new); | |||||
| $qual_old = PhabricatorBadgesQuality::getQualityName($old); | |||||
| return pht( | return pht( | ||||
| '%s updated the quality for this badge from "%s" to "%s".', | '%s updated the quality for this badge from "%s" to "%s".', | ||||
| $this->renderHandleLink($author_phid), | $this->renderHandleLink($author_phid), | ||||
| $qual_old, | $qual_old, | ||||
| $qual_new); | $qual_new); | ||||
| } | } | ||||
| break; | break; | ||||
| case self::TYPE_AWARD: | case self::TYPE_AWARD: | ||||
| ▲ Show 20 Lines • Show All 176 Lines • Show Last 20 Lines | |||||