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:
parent
335ee29390
commit
c639426437
@ -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))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user