mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 00:52:03 +01:00 
			
		
		
		
	Optimisation de l'envoi de mails
This commit is contained in:
		@@ -93,10 +93,11 @@ class NewTournament {
 | 
			
		||||
 | 
			
		||||
		$this->tournament = Tournament::fromName($this->name);
 | 
			
		||||
 | 
			
		||||
		/** @var User $organizer */
 | 
			
		||||
		foreach ($this->organizers as $organizer) {
 | 
			
		||||
			$req = $DB->prepare("INSERT INTO `organizers`(`organizer`, `tournament`) VALUES(?, ?);");
 | 
			
		||||
			$req->execute([$organizer->getId(), $this->tournament->getId()]);
 | 
			
		||||
			sendAddOrganizerForTournamentMail($organizer, $this->tournament);
 | 
			
		||||
			Mailer::sendAddOrganizerForTournamentMail($organizer, $this->tournament);
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user