From 72d9855d2cdd49894f836efbe3598cf466076f53 Mon Sep 17 00:00:00 2001 From: Moc Date: Thu, 30 May 2013 11:17:57 +0200 Subject: [PATCH] #356 - Dowloads issue 'File not found'. Replaced $DOWNLOADS_DIRECTORY with e_DOWNLOAD. --- e107_plugins/download/request.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/e107_plugins/download/request.php b/e107_plugins/download/request.php index e2aaec2bc..0b307e786 100644 --- a/e107_plugins/download/request.php +++ b/e107_plugins/download/request.php @@ -18,9 +18,9 @@ if (!is_numeric(e_QUERY)) header("location: ".e_QUERY); exit(); } - elseif(file_exists($DOWNLOADS_DIRECTORY.e_QUERY)) // 1 - should we allow this? + elseif(file_exists(e_DOWNLOAD.e_QUERY)) // 1 - should we allow this? { - e107::getFile()->send($DOWNLOADS_DIRECTORY.e_QUERY); + e107::getFile()->send(e_DOWNLOAD.e_QUERY); exit(); } } @@ -96,9 +96,9 @@ if (preg_match("#.*\.[a-z,A-Z]{3,4}#", e_QUERY)) exit(); } } - if (file_exists($DOWNLOADS_DIRECTORY.e_QUERY)) + if (file_exists(e_DOWNLOAD.e_QUERY)) { - e107::getFile()->send($DOWNLOADS_DIRECTORY.e_QUERY); + e107::getFile()->send(e_DOWNLOAD.e_QUERY); exit(); } require_once(HEADERF); @@ -195,9 +195,9 @@ if ($type == "file") } else { - if (file_exists($DOWNLOADS_DIRECTORY.$download_url)) + if (file_exists(e_DOWNLOAD.$download_url)) { - e107::getFile()->send($DOWNLOADS_DIRECTORY.$download_url); + e107::getFile()->send(e_DOWNLOAD.$download_url); exit(); } elseif(file_exists(e_UPLOAD.$download_url))