diff --git a/admin/deleteAny.php b/admin/deleteAny.php index 9f2e516..e64aa30 100644 --- a/admin/deleteAny.php +++ b/admin/deleteAny.php @@ -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"); } ?> diff --git a/appview.php b/appview.php index 184cb9a..5a59fd8 100644 --- a/appview.php +++ b/appview.php @@ -446,8 +446,8 @@ else if($appId && $versionId) echo '
'; - $url = BASE."admin/deleteAny.php?what=appVersion&versionId=".$_REQUEST['versionId']."&confirmed=yes"; - echo "'; echo '