"mime_magic methods are not yet static in 1.6, thanks to Hans-Jürgen"

This commit is contained in:
Ralf Becker 2010-04-03 06:18:00 +00:00
parent 22a3b97bb7
commit 082e01874a

View File

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