From 2a063a93a97483deed357594edb3a45c26517796 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Mon, 23 Nov 2015 14:37:44 +0000 Subject: [PATCH] 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 --- src/applications/phame/storage/PhameBlogTransaction.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/applications/phame/storage/PhameBlogTransaction.php b/src/applications/phame/storage/PhameBlogTransaction.php index 98622a80b1..791dc930c4 100644 --- a/src/applications/phame/storage/PhameBlogTransaction.php +++ b/src/applications/phame/storage/PhameBlogTransaction.php @@ -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),