Fix: Can not delete directory in ecm module

This commit is contained in:
Laurent Destailleur 2009-12-15 10:37:54 +00:00
parent d26083e8fe
commit db9e81f571
2 changed files with 684 additions and 655 deletions

View File

@ -143,9 +143,15 @@ if ($_POST['action'] == 'confirm_deletedir' && $_POST['confirm'] == 'yes')
{
// Fetch was already done
$result=$ecmdir->delete($user);
header("Location: ".DOL_URL_ROOT."/ecm/index.php");
exit;
// $mesg = '<div class="ok">'.$langs->trans("ECMSectionWasRemoved", $ecmdir->label).'</div>';
if ($result > 0)
{
header("Location: ".DOL_URL_ROOT."/ecm/index.php");
exit;
}
else
{
$mesg = '<div class="error">'.$langs->trans($ecmdir->error).'</div>';
}
}
// Update description

File diff suppressed because it is too large Load Diff