mirror of
https://github.com/e107inc/e107.git
synced 2025-08-07 07:06:30 +02:00
Added option to use a custom plugin folder for media-manager image uploads. ie. writeParms => array('path'=>'plugin');
This commit is contained in:
@@ -187,7 +187,8 @@
|
||||
// rename($targetDir.$fileName,e_MEDIA."images/2012-05/",$fileName);
|
||||
if($_GET['for'] != '') // leave in upload directory if no category given.
|
||||
{
|
||||
$result = e107::getMedia()->importFile($fileName, $_GET['for']);
|
||||
$uploadPath = varset($_GET['path'],null);
|
||||
$result = e107::getMedia()->importFile($fileName, $_GET['for'], array('path'=>$uploadPath));
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user