mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 12:48:26 +02:00
Improve MM import
This commit is contained in:
@@ -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();
|
$mes = e107::getMessage();
|
||||||
$tp = e107::getParser();
|
$tp = e107::getParser();
|
||||||
$sql = e107::getDb();
|
$sql = e107::getDb();
|
||||||
|
|
||||||
$oldpath = e_IMPORT.$file;
|
if(!$oldpath) $oldpath = e_IMPORT.$file;
|
||||||
|
|
||||||
if(!file_exists($oldpath))
|
if(!file_exists($oldpath))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user