Remove unused exception variables, now that this is possible with PHP8

This commit is contained in:
Alex Cabal 2023-06-06 21:00:12 -05:00
parent fe16cb3b21
commit 8127f0c7e2
36 changed files with 60 additions and 63 deletions

View file

@ -70,14 +70,14 @@ try{
exit();
}
catch(Exceptions\LoginRequiredException $ex){
catch(Exceptions\LoginRequiredException){
header('WWW-Authenticate: Basic realm="Enter your Patrons Circle email address and leave the password empty."');
http_response_code(401);
}
catch(Exceptions\InvalidPermissionsException $ex){
catch(Exceptions\InvalidPermissionsException){
http_response_code(403);
}
catch(Exceptions\InvalidFileException $ex){
catch(Exceptions\InvalidFileException){
Template::Emit404();
}