1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-06-25 19:37:23 +02:00

Phase 2 : amélioration du dépôt des questions

This commit is contained in:
galaxyoyo
2019-09-21 14:31:31 +02:00
parent 41c4734624
commit 81acf09fbf
3 changed files with 60 additions and 27 deletions

View File

@ -35,7 +35,7 @@ else {
$from = Team::fromId($question->getFrom());
$to = Team::fromId($question->getTo());
$mime_type = finfo_file(finfo_open(FILEINFO_MIME_TYPE), "$LOCAL_PATH/files/$id");
$name = "Pièce jointe de l'équipe " . $from->getTrigram() . " pour l'équipe " . $from->getTrigram();
$name = "Pièce jointe" . $question->getNumber() . " de l'équipe " . $from->getTrigram() . " pour l'équipe " . $from->getTrigram() . " (problème " . $question->getProblem() . ")";
switch ($mime_type) {
case "application/pdf":
$name .= "pdf";