mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
Set a default paste header
Summary: Fixes T4040 Test Plan: Create new paste without title, see title. Reviewers: epriestley Reviewed By: epriestley CC: Korvin, epriestley, aran Maniphest Tasks: T4040 Differential Revision: https://secure.phabricator.com/D7605
This commit is contained in:
parent
c146c942af
commit
200b51df5d
1 changed files with 3 additions and 1 deletions
|
@ -157,8 +157,10 @@ final class PhabricatorPasteViewController extends PhabricatorPasteController {
|
|||
}
|
||||
|
||||
private function buildHeaderView(PhabricatorPaste $paste) {
|
||||
$title = (nonempty($paste->getTitle())) ?
|
||||
$paste->getTitle() : pht('(An Untitled Masterwork)');
|
||||
$header = id(new PHUIHeaderView())
|
||||
->setHeader($paste->getTitle())
|
||||
->setHeader($title)
|
||||
->setUser($this->getRequest()->getUser())
|
||||
->setPolicyObject($paste);
|
||||
|
||||
|
|
Loading…
Reference in a new issue