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:
@ -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 n°" . $question->getNumber() . " de l'équipe " . $from->getTrigram() . " pour l'équipe " . $from->getTrigram() . " (problème " . $question->getProblem() . ")";
|
||||
switch ($mime_type) {
|
||||
case "application/pdf":
|
||||
$name .= "pdf";
|
||||
|
Reference in New Issue
Block a user