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/reminder.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include/reminder.php') diff --git a/include/reminder.php b/include/reminder.php index 1031dec..502c408 100644 --- a/include/reminder.php +++ b/include/reminder.php @@ -67,8 +67,7 @@ if( (time()-strtotime($r[0]) > 60*60*24*7) && ($r[2]!='gameover') ) /* = 1 week else { DB_set_reminder($r[1],$gameid); - $subject ='Reminder: game '.DB_format_gameid($gameid)." it's your turn"; - mymail($r[1],$subject,$message); + mymail($r[1],$gameid, GAME_REMINDER, $message); echo "

Game ".DB_format_gameid($gameid). ": an email has been sent out.

"; -- cgit v1.2.3-18-g5258