mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-19 13:22:42 +01:00
Fix constant in PhameBlogTransaction
Summary: These constants are incorrect. Test Plan: Archive a blog, see feed story. Publish a blog, see another feed story. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D14545
This commit is contained in:
parent
8f484f2e3a
commit
2a063a93a9
1 changed files with 4 additions and 4 deletions
|
@ -109,11 +109,11 @@ final class PhameBlogTransaction
|
|||
break;
|
||||
case self::TYPE_STATUS:
|
||||
switch ($new) {
|
||||
case self::STATUS_OPEN:
|
||||
case PhameBlog::STATUS_ACTIVE:
|
||||
return pht(
|
||||
'%s published this blog.',
|
||||
$this->renderHandleLink($author_phid));
|
||||
case self::STATUS_CLOSED:
|
||||
case PhameBlog::STATUS_ARCHIVED:
|
||||
return pht(
|
||||
'%s archived this blog.',
|
||||
$this->renderHandleLink($author_phid));
|
||||
|
@ -166,12 +166,12 @@ final class PhameBlogTransaction
|
|||
break;
|
||||
case self::TYPE_STATUS:
|
||||
switch ($new) {
|
||||
case self::STATUS_OPEN:
|
||||
case PhameBlog::STATUS_ACTIVE:
|
||||
return pht(
|
||||
'%s published the blog %s.',
|
||||
$this->renderHandleLink($author_phid),
|
||||
$this->renderHandleLink($object_phid));
|
||||
case self::STATUS_CLOSED:
|
||||
case PhameBlog::STATUS_ARCHIVED:
|
||||
return pht(
|
||||
'%s archived the blog %s.',
|
||||
$this->renderHandleLink($author_phid),
|
||||
|
|
Loading…
Reference in a new issue