mirror of
https://github.com/standardebooks/web.git
synced 2025-07-12 17:42:29 -04:00
Replace Template::Emit...() functions with more generic function
This commit is contained in:
parent
f449c024ea
commit
806939ca49
40 changed files with 86 additions and 68 deletions
|
@ -28,13 +28,13 @@ try{
|
|||
}
|
||||
}
|
||||
catch(Exceptions\UserNotFoundException){
|
||||
Template::Emit404();
|
||||
Template::ExitWithCode(Enums\HttpCode::NotFound);
|
||||
}
|
||||
catch(Exceptions\LoginRequiredException){
|
||||
Template::RedirectToLogin();
|
||||
}
|
||||
catch(Exceptions\InvalidPermissionsException){
|
||||
Template::Emit403(); // No permissions to edit artwork.
|
||||
Template::ExitWithCode(Enums\HttpCode::Forbidden); // No permissions to edit artwork.
|
||||
}
|
||||
?>
|
||||
<?= Template::Header(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue