Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15352902
D20453.id48806.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
790 B
Referenced Files
None
Subscribers
None
D20453.id48806.diff
View Options
diff --git a/src/applications/macro/controller/PhabricatorMacroViewController.php b/src/applications/macro/controller/PhabricatorMacroViewController.php
--- a/src/applications/macro/controller/PhabricatorMacroViewController.php
+++ b/src/applications/macro/controller/PhabricatorMacroViewController.php
@@ -136,7 +136,12 @@
$image_uri = $handles[$author_phid]->getImageURI();
$image_href = $handles[$author_phid]->getURI();
- $content = pht('Masterfully imagined by %s on %s.', $author, $date);
+ if (!$date) {
+ $content = pht(
+ 'Masterfully imagined by %s in ages long past.', $author);
+ } else {
+ $content = pht('Masterfully imagined by %s on %s.', $author, $date);
+ }
return id(new PHUIHeadThingView())
->setImage($image_uri)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Mar 11, 7:00 PM (5 d, 5 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7545974
Default Alt Text
D20453.id48806.diff (790 B)
Attached To
Mode
D20453: Improve timeline rendering for old macros
Attached
Detach File
Event Timeline
Log In to Comment