From 158e3c9ecfa43aa2a2b02f0156972c2c26b53e42 Mon Sep 17 00:00:00 2001 From: Thomas Rubini <74205383+ThomasRubini@users.noreply.github.com> Date: Mon, 23 Jan 2023 14:21:17 +0100 Subject: [PATCH] replace "URL" with "LINK" --- Models/RecipeModel.php | 2 +- Views/recipe/view.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Models/RecipeModel.php b/Models/RecipeModel.php index 1bc0641..88d8b09 100644 --- a/Models/RecipeModel.php +++ b/Models/RecipeModel.php @@ -20,7 +20,7 @@ final class RecipeModel $A_recipe = self::getRecipeByID($I_id); if ($A_recipe === null)return null; - $A_recipe["IMAGE_URL"] = "/static/img/recipes/".$A_recipe["ID"].".jpg"; + $A_recipe["IMG_LINK"] = "/static/img/recipes/".$A_recipe["ID"].".jpg"; $O_ingredientModel = new IngredientModel(); $A_recipe["INGREDIENTS"] = $O_ingredientModel->searchByRecipe($A_recipe["ID"]); diff --git a/Views/recipe/view.php b/Views/recipe/view.php index 99bcce2..32ade32 100644 --- a/Views/recipe/view.php +++ b/Views/recipe/view.php @@ -2,7 +2,7 @@
- " alt="Image d'illustration de la recette"> + " alt="Image d'illustration de la recette">