Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F84157
D7605.diff
All Users
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
694 B
Referenced Files
None
Subscribers
None
D7605.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D7605: Set a default paste header
Attached
Detach File
Event Timeline
Log In to Comment