Rename util_show_error_page() to util_show_error_page_and_exit() and redirect() to util_redirect_and_exit()

so it is explicit that we exit in those functions that so we know it isn't necessary to put an exit after
we call them
This commit is contained in:
Jonathan Ernst
2006-07-06 18:44:56 +00:00
committed by WineHQ
parent a34058b924
commit 3096e63828
41 changed files with 119 additions and 120 deletions

View File

@@ -29,7 +29,7 @@ if($aClean['sConfirmed'] != "yes")
//
// perhaps we can do this with some javascript, popup
util_show_error_page("Not confirmed");
util_show_error_page_and_exit("Not confirmed");
}
if($aClean['sWhat'])
@@ -40,24 +40,24 @@ if($aClean['sWhat'])
// delete category and the apps in it
$oCategory = new Category($aClean['iCatId']);
if(!$oCategory->delete())
util_show_error_page();
util_show_error_page_and_exit();
else
redirect(BASE."appbrowse.php");
util_redirect_and_exit(BASE."appbrowse.php");
break;
case "appFamily":
// delete app family & all its versions
$oApp = new Application($aClean['iAppId']);
if(!$oApp->delete())
util_show_error_page();
util_show_error_page_and_exit();
else
redirect(BASE."appbrowse.php");
util_redirect_and_exit(BASE."appbrowse.php");
break;
case "appVersion":
$oVersion = new Version($aClean['iVersionId']);
if(!$oVersion->delete())
util_show_error_page();
util_show_error_page_and_exit();
else
redirect(BASE."appview.php?iAppId=".$aClean['iAppId']);
util_redirect_and_exit(BASE."appview.php?iAppId=".$aClean['iAppId']);
break;
}
}