Page MenuHomePhabricator

D7605.diff

diff --git a/src/applications/paste/controller/PhabricatorPasteViewController.php b/src/applications/paste/controller/PhabricatorPasteViewController.php
--- a/src/applications/paste/controller/PhabricatorPasteViewController.php
+++ b/src/applications/paste/controller/PhabricatorPasteViewController.php
@@ -157,8 +157,10 @@
}
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);

File Metadata

Mime Type
text/x-diff
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/sg/wi/wlyfcoq5omihd5tj
Default Alt Text
D7605.diff (694 B)

Event Timeline