From eb2fbadbdfd52d98fd20bcb1905d33bd7a3fd49e Mon Sep 17 00:00:00 2001 From: deva Date: Sun, 7 Dec 2008 14:48:58 +0000 Subject: Made notify resend after a configurable timeout. --- forum/utils/notify.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'forum/utils/notify.php') diff --git a/forum/utils/notify.php b/forum/utils/notify.php index 9c34e65..8ddbbd0 100644 --- a/forum/utils/notify.php +++ b/forum/utils/notify.php @@ -26,6 +26,7 @@ function notify($module = "", $event = "") { global $users; global $current_user; + global $NOTIFY_RESEND; $users_changed = false; foreach($users->users as $user) { @@ -36,7 +37,7 @@ function notify($module = "", $event = "") ( $module == "forum" && $user != $current_user && // Don't notify current user. - $user->notified < (time() - (60 * 60 * 24 * 7)) // Don't notify if already notified. + $user->notified < (time() - $NOTIFY_RESEND) // Don't notify if already notified. ) ) { send($user->email, $module . " changed", -- cgit v1.2.3