From 572bbd2b9fc144d7eed836c07d82452a4152411a Mon Sep 17 00:00:00 2001 From: e107steved Date: Wed, 19 Dec 2007 20:12:46 +0000 Subject: [PATCH] Resolve upload path for non-image files --- e107_plugins/forum/forum_post.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/e107_plugins/forum/forum_post.php b/e107_plugins/forum/forum_post.php index e5f7ae976..483ceea48 100644 --- a/e107_plugins/forum/forum_post.php +++ b/e107_plugins/forum/forum_post.php @@ -11,8 +11,8 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_plugins/forum/forum_post.php,v $ -| $Revision: 1.14 $ -| $Date: 2007-12-18 21:55:35 $ +| $Revision: 1.15 $ +| $Date: 2007-12-19 20:12:46 $ | $Author: e107steved $ +----------------------------------------------------------------------------+ */ @@ -599,9 +599,9 @@ function process_upload() { if ($upload['error'] == 0) { + $fpath = "{e_FILE}public/"; if(strstr($upload['type'], "image")) { - $fpath = "{e_FILE}public/"; if(isset($pref['forum_maxwidth']) && $pref['forum_maxwidth'] > 0) { require_once(e_HANDLER."resize_handler.php");