mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-06-26 00:27:32 +02:00
Utilisation des nouvelles classes, amélioration du code
This commit is contained in:
@ -23,9 +23,9 @@ if (($data = $req->fetch()) === false) {
|
||||
}
|
||||
|
||||
if ($data !== false) {
|
||||
$team_data = $DB->query("SELECT `trigram` FROM `teams` WHERE `id` = " . $data["team"] . ";")->fetch();
|
||||
$tournament_data = $DB->query("SELECT `name` FROM `tournaments` WHERE `id` = " . $data["tournament"] . ";")->fetch();
|
||||
$trigram = $team_data["trigram"];
|
||||
$team = Team::fromId($data["team"]);
|
||||
$tournament = Tournament::fromId($data["tournament"]);
|
||||
$trigram = $team->getTrigram();
|
||||
if ($type == "SOLUTION") {
|
||||
$problem = $data["problem"];
|
||||
$name = "Problème $problem $trigram.pdf";
|
||||
|
Reference in New Issue
Block a user