mirror of
https://github.com/e107inc/e107.git
synced 2025-03-14 01:19:44 +01:00
Resolve upload path for non-image files
This commit is contained in:
parent
0c51f3de7b
commit
572bbd2b9f
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user