Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / phame / xaction / PhameBlogProfileImageTransaction.php
blob77acf680fd59f56828edb80d66e1362081228e2d
1 <?php
3 final class PhameBlogProfileImageTransaction
4 extends PhameBlogTransactionType {
6 // TODO: Migrate these transactions ha ha .... ha
7 const TRANSACTIONTYPE = 'phame.blog.header.image';
9 public function generateOldValue($object) {
10 return $object->getProfileImagePHID();
13 public function applyInternalEffects($object, $value) {
14 $object->setProfileImagePHID($value);
17 public function getTitle() {
18 return pht(
19 '%s changed the profile image for this blog.',
20 $this->renderAuthor());
23 public function getTitleForFeed() {
24 return pht(
25 '%s changed the profile image for blog %s.',
26 $this->renderAuthor(),
27 $this->renderObject());
30 public function getIcon() {
31 return 'fa-file-image-o';