migrate common/404 to errors/404

This commit is contained in:
Thomas Rubini 2023-01-16 23:25:00 +01:00
parent 46d09875cd
commit 0be83d3ecc
No known key found for this signature in database
GPG Key ID: C7D287C8C1CAC373
2 changed files with 2 additions and 3 deletions

View File

@ -6,13 +6,13 @@ final class RecipeController
public function viewAction(Array $A_urlParams = null, Array $A_postParams = null)
{
if(count($A_urlParams)!=1){
return View::show("common/404");
return View::show("errors/404");
}
$O_recipeModel = new RecipeModel();
$A_returnArray = $O_recipeModel->getFullRecipeWithComments($A_urlParams[0]);
if ($A_returnArray === null) {
return View::show("common/404");
return View::show("errors/404");
}
View::show("recipe/view", $A_returnArray);

View File

@ -1 +0,0 @@
<h1>404 page not found</h1>