From a81a03678949570a6c96a73468c5c32b17bee16b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9=20Garnier?= Date: Wed, 11 Jan 2023 18:44:26 +0100 Subject: [PATCH] test --- WEB/Controller/UserController.php | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/WEB/Controller/UserController.php b/WEB/Controller/UserController.php index 38215ab3..6bc8b6fa 100644 --- a/WEB/Controller/UserController.php +++ b/WEB/Controller/UserController.php @@ -348,16 +348,6 @@ class UserController } } - public function goToGameEnd(){ - try { - global $rep, $vues, $error; - require ($rep . $vues['gameEnd']); - } catch (Exception $e) { - $error = $e->getMessage(); - require($rep . $vues['erreur']); - } - } - // A appeler après avoir vérifié que la partie est finie public function endGame(){ try { @@ -366,7 +356,7 @@ class UserController $idPartie = $_SESSION['idPartie']; $lesInfos = $model->getEndGameInfo($idPartie); $model->endGame($idPartie); - $this->goToGameEnd(); + require ($rep . $vues['gameEnd']); } catch (Exception $e) { $error = $e->getMessage();