From 8ea6ceca60427ccf5307d9582c310088a584296d Mon Sep 17 00:00:00 2001 From: Moc Date: Thu, 13 Jun 2013 15:20:31 +0200 Subject: [PATCH] #370 - 'File not found' error on download, possible fix. --- e107_plugins/download/request.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/e107_plugins/download/request.php b/e107_plugins/download/request.php index 6551db4d7..8d6c2c259 100644 --- a/e107_plugins/download/request.php +++ b/e107_plugins/download/request.php @@ -202,12 +202,16 @@ if ($type == "file") e107::getFile()->send(e_DOWNLOAD.$download_url); exit(); } + elseif(file_exists($download_url)) + { + e107::getFile()->send($download_url); + exit(); + } elseif(file_exists(e_UPLOAD.$download_url)) { e107::getFile()->send(e_UPLOAD.$download_url); exit(); } - $log->addError("Couldn't find ".e_UPLOAD.$download_url." or ".e_DOWNLOAD.$download_url); } } else @@ -246,7 +250,6 @@ if ($type == "file") exit(); } } - require_once(HEADERF); $ns -> tablerender(LAN_dl_61, "
".LAN_dl_65."

".LAN_dl_64."
"); require_once(FOOTERF);