From 48ab6aa465ff77faff1e17fe62bcd0895bb1f054 Mon Sep 17 00:00:00 2001 From: vrana Date: Thu, 23 Feb 2012 13:18:53 -0800 Subject: [PATCH] Display //no name// for files without name to make the link clickable Test Plan: /file/ Reviewers: epriestley Reviewed By: epriestley CC: aran, epriestley Differential Revision: https://secure.phabricator.com/D1679 --- .../files/controller/list/PhabricatorFileListController.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/applications/files/controller/list/PhabricatorFileListController.php b/src/applications/files/controller/list/PhabricatorFileListController.php index d1164f5d07..7aa7c24e10 100644 --- a/src/applications/files/controller/list/PhabricatorFileListController.php +++ b/src/applications/files/controller/list/PhabricatorFileListController.php @@ -1,7 +1,7 @@ getName(); $rows[] = array( phutil_escape_html('F'.$file->getID()), $file->getAuthorPHID() @@ -247,7 +248,7 @@ class PhabricatorFileListController extends PhabricatorFileController { array( 'href' => $file->getBestURI(), ), - phutil_escape_html($file->getName())), + ($name != '' ? phutil_escape_html($name) : 'no name')), phutil_escape_html(number_format($file->getByteSize()).' bytes'), phutil_render_tag( 'a',