worked on renaming of group dirs

This commit is contained in:
skeeter 2000-08-27 12:22:07 +00:00
parent 279c9181ab
commit 154817313b

View File

@ -59,10 +59,15 @@
$sep = $phpgw->common->filesystem_separator(); $sep = $phpgw->common->filesystem_separator();
$basedir = $phpgw_info["server"]["server_root"] . $sep . "filemanager" . $sep . "groups" . $sep;
if (! @rename($basedir . $old_group_name, $basedir . $n_group)) { if ($old_group_name <> $n_group) {
$cd = 39; $basedir = $phpgw_info["server"]["server_root"] . $sep . "filemanager" . $sep . "groups" . $sep;
if (! @rename($basedir . $old_group_name, $basedir . $n_group)) {
$cd = 39;
} else {
$cd = 33;
}
} else { } else {
$cd = 33; $cd = 33;
} }