From c63942643796e0ca823a52e8759b2ac2ed76f488 Mon Sep 17 00:00:00 2001
From: SecretR <secretr@e107.org>
Date: Mon, 3 Nov 2014 16:50:49 +0200
Subject: [PATCH] Improve MM import

---
 e107_handlers/media_class.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

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))
 		{