1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-07 07:06:30 +02:00

Media Manager Issue #3426

This commit is contained in:
Cameron
2018-09-10 12:31:31 -07:00
parent 688db76a96
commit 775cf26b98
2 changed files with 11 additions and 5 deletions

View File

@@ -232,14 +232,15 @@
}
}
if($_GET['for'] != '') // leave in upload directory if no category given.
if(!empty($_GET['for'])) // leave in upload directory if no category given.
{
$uploadPath = varset($_GET['path'],null);
$result = e107::getMedia()->importFile($fileName, $_GET['for'], array('path'=>$uploadPath));
$for = $tp->filter($_GET['for']);
$for = str_replace(array('+','^'),'', $for);
$result = e107::getMedia()->importFile($fileName, $for, array('path'=>$uploadPath));
}