diff --git a/e107_handlers/media_class.php b/e107_handlers/media_class.php index 15ff62301..fa6ba0ecb 100644 --- a/e107_handlers/media_class.php +++ b/e107_handlers/media_class.php @@ -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)) {