"only report filename (not full path) in rename success or error in file dialog"

This commit is contained in:
Ralf Becker 2009-12-01 09:07:18 +00:00
parent 691cc6bb3e
commit 39a5ba82ee

View File

@ -756,13 +756,13 @@ class filemanager_ui
}
if (egw_vfs::rename($path,$to))
{
$msg .= lang('Renamed %1 to %2.',$path,$to).' ';
$msg .= lang('Renamed %1 to %2.',basename($path),basename($to)).' ';
$content['old']['name'] = $content[$name];
$path = $to;
}
else
{
$msg .= lang('Rename of %1 to %2 failed!',$path,$to).' ';
$msg .= lang('Rename of %1 to %2 failed!',basename($path),basename($to)).' ';
if (egw_vfs::deny_script($to))
{
$msg .= lang('You are NOT allowed to upload a script!').' ';