From 5b2937151c687dccd3dc09a6aca3345259afef80 Mon Sep 17 00:00:00 2001 From: Nathan Adams Date: Sat, 20 Dec 2014 11:05:33 -0600 Subject: [PATCH] Fixing issue 70 --- indefero/src/IDF/Views/Project.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/indefero/src/IDF/Views/Project.php b/indefero/src/IDF/Views/Project.php index 677ae3f..545f787 100644 --- a/indefero/src/IDF/Views/Project.php +++ b/indefero/src/IDF/Views/Project.php @@ -41,8 +41,10 @@ class IDF_Views_Project $logo = $prj->getConf()->getVal('logo'); if (empty($logo)) { - $url = Pluf::f('url_media') . '/idf/img/no_logo.png'; - return new Pluf_HTTP_Response_Redirect($url); + $file = "./media/idf/img/no_logo.png"; + $info = IDF_FileUtil::getMimeType($file); + return new Pluf_HTTP_Response_File($file, + $info[0]); } $info = IDF_FileUtil::getMimeType($logo);