1
0
Fork 0
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:
Chad Little 2015-11-23 14:37:44 +00:00 committed by chad
parent 8f484f2e3a
commit 2a063a93a9

View file

@ -109,11 +109,11 @@ final class PhameBlogTransaction
break; break;
case self::TYPE_STATUS: case self::TYPE_STATUS:
switch ($new) { switch ($new) {
case self::STATUS_OPEN: case PhameBlog::STATUS_ACTIVE:
return pht( return pht(
'%s published this blog.', '%s published this blog.',
$this->renderHandleLink($author_phid)); $this->renderHandleLink($author_phid));
case self::STATUS_CLOSED: case PhameBlog::STATUS_ARCHIVED:
return pht( return pht(
'%s archived this blog.', '%s archived this blog.',
$this->renderHandleLink($author_phid)); $this->renderHandleLink($author_phid));
@ -166,12 +166,12 @@ final class PhameBlogTransaction
break; break;
case self::TYPE_STATUS: case self::TYPE_STATUS:
switch ($new) { switch ($new) {
case self::STATUS_OPEN: case PhameBlog::STATUS_ACTIVE:
return pht( return pht(
'%s published the blog %s.', '%s published the blog %s.',
$this->renderHandleLink($author_phid), $this->renderHandleLink($author_phid),
$this->renderHandleLink($object_phid)); $this->renderHandleLink($object_phid));
case self::STATUS_CLOSED: case PhameBlog::STATUS_ARCHIVED:
return pht( return pht(
'%s archived the blog %s.', '%s archived the blog %s.',
$this->renderHandleLink($author_phid), $this->renderHandleLink($author_phid),