From d714978f3f6d99aa23dae6058263aeaa9e90742c Mon Sep 17 00:00:00 2001 From: zacharyg Date: Thu, 13 Sep 2012 10:46:16 -0700 Subject: [PATCH] Fix error in ponder comment hiding. Summary: I'm a tard Test Plan: - view page Reviewers: pieter Reviewed By: pieter CC: aran, epriestley, vrana Maniphest Tasks: T1775 Differential Revision: https://secure.phabricator.com/D3487 --- src/view/layout/AphrontMoreView.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/view/layout/AphrontMoreView.php b/src/view/layout/AphrontMoreView.php index fc63e04074..1857057fce 100644 --- a/src/view/layout/AphrontMoreView.php +++ b/src/view/layout/AphrontMoreView.php @@ -40,7 +40,10 @@ final class AphrontMoreView extends AphrontView { public function render() { $some = $this->some; - $text = $this->expandtext === null ?: "(Show More\xE2\x80\xA6)"; + $text = "(Show More\xE2\x80\xA6)"; + if ($this->expandtext !== null) { + $text = $this->expandtext; + } $link = null; if ($this->more && $this->more != $this->some) {