mirror of
https://github.com/prasathmani/tinyfilemanager
synced 2024-05-17 21:16:38 +02:00
Merge fad07daa40
into ca4b1b1743
This commit is contained in:
commit
fc052b1882
|
@ -880,7 +880,7 @@ if (isset($_POST['rename_from'], $_POST['rename_to'], $_POST['token']) && !FM_RE
|
||||||
// rename
|
// rename
|
||||||
if (fm_isvalid_filename($new) && $old != '' && $new != '') {
|
if (fm_isvalid_filename($new) && $old != '' && $new != '') {
|
||||||
if (fm_rename($path . '/' . $old, $path . '/' . $new)) {
|
if (fm_rename($path . '/' . $old, $path . '/' . $new)) {
|
||||||
fm_set_msg(sprintf(lng('Renamed from').' <b>%s</b> '. lng('to').' <b>%s</b>', fm_enc($old), fm_enc($new)));
|
fm_set_msg(sprintf(lng('Renamed from').' <b>%s</b> '. lng('to').' <b><a href="%s">%s</a></b>',fm_enc($old),'?p=' . urlencode(FM_PATH) . '&view=' . urlencode($new), fm_enc($new) ));
|
||||||
} else {
|
} else {
|
||||||
fm_set_msg(sprintf(lng('Error while renaming from').' <b>%s</b> '. lng('to').' <b>%s</b>', fm_enc($old), fm_enc($new)), 'error');
|
fm_set_msg(sprintf(lng('Error while renaming from').' <b>%s</b> '. lng('to').' <b>%s</b>', fm_enc($old), fm_enc($new)), 'error');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue