From 082e01874a4a18d0d2d393616a173349ba9b8b48 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 3 Apr 2010 06:18:00 +0000 Subject: [PATCH] =?UTF-8?q?"mime=5Fmagic=20methods=20are=20not=20yet=20sta?= =?UTF-8?q?tic=20in=201.6,=20thanks=20to=20Hans-J=C3=BCrgen"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- filemanager/inc/class.filemanager_ui.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/filemanager/inc/class.filemanager_ui.inc.php b/filemanager/inc/class.filemanager_ui.inc.php index 5f3b42932e..0731a4e143 100644 --- a/filemanager/inc/class.filemanager_ui.inc.php +++ b/filemanager/inc/class.filemanager_ui.inc.php @@ -656,7 +656,9 @@ class filemanager_ui $msg .= lang('Renamed %1 to %2.',$path,$to).' '; $content['old']['name'] = $content[$name]; $path = $to; - $content['mime'] = mime_magic::filename2mime($path); // recheck mime type + $mime_magic = new mime_magic(); + $content['mime'] = $mime_magic->filename2mime($path); // recheck mime type + unset($mime_magic); } else {