From 08583506b9bdb4ef2d30bad9752c960f20fe54b6 Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Sun, 20 Mar 2011 00:40:54 -0700 Subject: CLEANUP: added gameid to mymail and generate subject line in mymail directly this way it will be easier to add translation and also to add the gameid into the database for the digest --- include/newgame.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'include/newgame.php') diff --git a/include/newgame.php b/include/newgame.php index 4e9deaf..68e0d15 100644 --- a/include/newgame.php +++ b/include/newgame.php @@ -200,11 +200,10 @@ else "If you want to join this game, please follow this link:\n". "".$HOST.$INDEX."?action=game&me="; - $subject = 'You are invited to a game of DoKo (game '.DB_format_gameid($gameid).')'; - mymail($useridA,$subject, $message.$hashA."\n\n"); - mymail($useridB,$subject, $message.$hashB."\n\n"); - mymail($useridC,$subject, $message.$hashC."\n\n"); - mymail($useridD,$subject, $message.$hashD."\n\n"); + mymail($useridA, $gameid, GAME_NEW, $message.$hashA."\n\n"); + mymail($useridB, $gameid, GAME_NEW, $message.$hashB."\n\n"); + mymail($useridC, $gameid, GAME_NEW, $message.$hashC."\n\n"); + mymail($useridD, $gameid, GAME_NEW, $message.$hashD."\n\n"); echo "
You started a new game. The emails have been sent out!
\n"; display_user_menu($myid); -- cgit v1.2.3-18-g5258