diff options
author | Arun Persaud <arun@nubati.net> | 2011-03-20 00:40:54 -0700 |
---|---|---|
committer | Arun Persaud <apersaud@lbl.gov> | 2011-03-20 00:40:54 -0700 |
commit | 08583506b9bdb4ef2d30bad9752c960f20fe54b6 (patch) | |
tree | f8fac0f7b889afccf3bc0d3b30fd523c0ff2ee07 /include/newgame.php | |
parent | 455372db985024563b26bfa5af9c91b2a8e53c06 (diff) | |
download | e-DoKo-08583506b9bdb4ef2d30bad9752c960f20fe54b6.tar.gz e-DoKo-08583506b9bdb4ef2d30bad9752c960f20fe54b6.tar.bz2 e-DoKo-08583506b9bdb4ef2d30bad9752c960f20fe54b6.zip |
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
Diffstat (limited to 'include/newgame.php')
-rw-r--r-- | include/newgame.php | 9 |
1 files changed, 4 insertions, 5 deletions
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 "<div class=\"message\">You started a new game. The emails have been sent out!</div>\n"; display_user_menu($myid); |