Page MenuHomePhabricator

D7341.diff

diff --git a/src/applications/differential/view/DifferentialChangesetDetailView.php b/src/applications/differential/view/DifferentialChangesetDetailView.php
--- a/src/applications/differential/view/DifferentialChangesetDetailView.php
+++ b/src/applications/differential/view/DifferentialChangesetDetailView.php
@@ -47,7 +47,7 @@
public function getFileIcon($filename) {
$path_info = pathinfo($filename);
- $extension = $path_info['extension'];
+ $extension = idx($path_info, 'extension');
switch ($extension) {
case 'psd':
case 'ai':
diff --git a/src/applications/files/remarkup/PhabricatorRemarkupRuleEmbedFile.php b/src/applications/files/remarkup/PhabricatorRemarkupRuleEmbedFile.php
--- a/src/applications/files/remarkup/PhabricatorRemarkupRuleEmbedFile.php
+++ b/src/applications/files/remarkup/PhabricatorRemarkupRuleEmbedFile.php
@@ -103,6 +103,7 @@
'meta' => array(
'phid' => $file->getPHID(),
'uri' => $file->getBestURI(),
+ 'dUri' => $file->getDownloadURI(),
'viewable' => true,
),
),

File Metadata

Mime Type
text/x-diff
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/4d/a3/ztp4nryij43xiywx
Default Alt Text
D7341.diff (1 KB)

Event Timeline