feat : nom chapitre

pull/37/head
Jade VAN BRABANDT 1 year ago
parent 65f57a841e
commit 28590b1d67

@ -109,7 +109,7 @@ class ControllerUser
$this->mdPlayer = new ModelPlayer();
$player = $this->mdPlayer->getPlayerByID($_SESSION["idPlayerConnected"]);
$maxscores = $this->mdPlayer->getMaxScoresWithChapter($player);
foreach ($maxscores as $maxscore) {
foreach ($maxscores as &$maxscore) {
$maxscore["chapter"]=$this->mdChapter->getChapterByID($maxscore["idchapter"])->getName();
}
echo $this->twig->render($this->vues["userStatus"],

@ -60,7 +60,7 @@ class ControllerUserPlayers
$player = $this->mdPlayer->getPlayerByID($param["id"]);
echo $this->twig->render($this->vues["adminAdministratorsModal"], [
'administrator' => $administrator,
'player' => $player,
]);
}

Loading…
Cancel
Save