diff --git a/dispatcher.php b/dispatcher.php index a0c49f3..00de4bc 100644 --- a/dispatcher.php +++ b/dispatcher.php @@ -57,7 +57,7 @@ $ROUTES["^tournoi/(.*)/(modifier)/?$"] = ["server_files/controllers/tournoi.php" $ROUTES["^tournoi/(.*)/?$"] = ["server_files/controllers/tournoi.php", "name"]; $ROUTES["^tournois/?$"] = ["server_files/controllers/tournois.php"]; -$ROUTES["^Autorisation de droits à l'image.pdf$"] = ["server_files/controllers/autorisation_droit_image.php"]; +$ROUTES["^Autorisation de droit à l'image.pdf$"] = ["server_files/controllers/autorisation_droit_image.php"]; $ROUTES["^Autorisation parentale.pdf$"] = ["server_files/controllers/autorisation_parentale.php"]; $ROUTES["^Instructions.pdf$"] = ["server_files/controllers/instructions.php"]; diff --git a/server_files/controllers/autorisation_droit_image.php b/server_files/controllers/autorisation_droit_image.php index 18f23a1..41b20c5 100644 --- a/server_files/controllers/autorisation_droit_image.php +++ b/server_files/controllers/autorisation_droit_image.php @@ -11,7 +11,7 @@ $team = $_SESSION["team"]; if (!isset($user) || isset($_GET["blank"]) || $_SESSION["role"] == Role::ORGANIZER || $_SESSION["role"] == Role::ADMIN) { $tournament = Tournament::fromName($_GET["blank"]); - $majeur = isset($_SESSION["mineur"]) ? 0 : 1; + $majeur = isset($_GET["mineur"]) ? 0 : 1; $tex = file_get_contents("assets/Autorisation_droit_image_" . ($majeur ? "majeur" : "mineur") . ".tex"); diff --git a/server_files/views/tournoi.php b/server_files/views/tournoi.php index 1d33a89..3995ee4 100644 --- a/server_files/views/tournoi.php +++ b/server_files/views/tournoi.php @@ -5,7 +5,11 @@