- fix version deletion

- redirect in the correct page when something is deleted
This commit is contained in:
Jonathan Ernst
2005-01-29 17:17:32 +00:00
committed by WineHQ
parent 47fd3b6d86
commit 805dab06ac
2 changed files with 7 additions and 7 deletions

View File

@@ -32,24 +32,24 @@ if($_REQUEST['what'])
switch($_REQUEST['what'])
{
case "comment":
// delete a comment
//TODO
// TODO: delete a comment
redirect(BASE."appview.php?appId=".$_REQUEST['appId']."&versionId=".$_REQUEST['versionId']);
break;
case "category":
// delete category and the apps in it
deleteCategory($_REQUEST['catId']);
redirect(BASE."appbrowse.php");
break;
case "appFamily":
// delete app family & all its versions
deleteAppFamily($_REQUEST['appId']);
redirect(BASE."appbrowse.php");
break;
case "appVersion":
// delete a version
deleteAppVersion($_REQUEST['versionId']);
redirect(BASE."appview.php?appId=".$_REQUEST['appId']);
break;
}
//FIXME need to redirect to the page before the confirmation page
redirect(BASE."appbrowse.php");
}
?>