Differential D13759 Diff 33233 src/applications/phurl/controller/PhabricatorPhurlURLViewController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phurl/controller/PhabricatorPhurlURLViewController.php
| Show All 39 Lines | $box = id(new PHUIObjectBoxView()) | ||||
| ->addPropertyList($properties); | ->addPropertyList($properties); | ||||
| $is_serious = PhabricatorEnv::getEnvConfig('phabricator.serious-business'); | $is_serious = PhabricatorEnv::getEnvConfig('phabricator.serious-business'); | ||||
| $add_comment_header = $is_serious | $add_comment_header = $is_serious | ||||
| ? pht('Add Comment') | ? pht('Add Comment') | ||||
| : pht('More Cowbell'); | : pht('More Cowbell'); | ||||
| $draft = PhabricatorDraft::newFromUserAndKey($viewer, $url->getPHID()); | $draft = PhabricatorDraft::newFromUserAndKey($viewer, $url->getPHID()); | ||||
| $comment_uri = $this->getApplicationURI( | $comment_uri = $this->getApplicationURI( | ||||
| '/phurl/comment/'.$url->getID().'/'); | 'comment/'.$url->getID().'/'); | ||||
chad: I think you don't need the first `/` either | |||||
| $add_comment_form = id(new PhabricatorApplicationTransactionCommentView()) | $add_comment_form = id(new PhabricatorApplicationTransactionCommentView()) | ||||
| ->setUser($viewer) | ->setUser($viewer) | ||||
| ->setObjectPHID($url->getPHID()) | ->setObjectPHID($url->getPHID()) | ||||
| ->setDraft($draft) | ->setDraft($draft) | ||||
| ->setHeaderText($add_comment_header) | ->setHeaderText($add_comment_header) | ||||
| ->setAction($comment_uri) | ->setAction($comment_uri) | ||||
| ->setSubmitButtonName(pht('Add Comment')); | ->setSubmitButtonName(pht('Add Comment')); | ||||
| ▲ Show 20 Lines • Show All 83 Lines • Show Last 20 Lines | |||||
I think you don't need the first / either