1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-19 20:21:51 +02:00

Improve MM import

This commit is contained in:
SecretR 2014-11-03 16:50:49 +02:00
parent 335ee29390
commit c639426437

View File

@ -1004,13 +1004,13 @@ class e_media
public function importFile($file='',$category='_common_image')
public function importFile($file='',$category='_common_image', $oldpath = null, $new_data = array())
{
$mes = e107::getMessage();
$tp = e107::getParser();
$sql = e107::getDb();
$oldpath = e_IMPORT.$file;
if(!$oldpath) $oldpath = e_IMPORT.$file;
if(!file_exists($oldpath))
{