diff --git a/checkin_notes b/checkin_notes index ddd14b9888..206c9c69d6 100644 --- a/checkin_notes +++ b/checkin_notes @@ -11231,3 +11231,13 @@ David 17 Nov 2007 forum_moderate_thread_action.php forum_report_post.php team_create_form.php + +David 17 Nov 2007 + - user web: send "red X" notifications on team boards + to project admins as well as team founder + + html/ + inc/ + forum_email.inc + user/ + forum_user_posts.php diff --git a/html/inc/forum_email.inc b/html/inc/forum_email.inc index f0ef8368d7..eae7e6e6a4 100644 --- a/html/inc/forum_email.inc +++ b/html/inc/forum_email.inc @@ -132,7 +132,16 @@ This was the contents of the post: For further information and assistance with ".PROJECT." go to ".MASTER_URL; - return mail_report_list($forum, $subject, $body, true); + $success = mail_report_list($forum, $subject, $body, true); + + // if it's a forum board, send to project admins too + // + if ($forum->parent_type != 0) { + $forum = new BoincForum; + $forum->parent_type = 0; + $success &= mail_report_list($forum, $subject, $body, true); + } + return $success; } function send_banish_email($forum, $user, $duration, $reason) { diff --git a/html/user/forum_user_posts.php b/html/user/forum_user_posts.php index fcb31650f8..aff85ea188 100644 --- a/html/user/forum_user_posts.php +++ b/html/user/forum_user_posts.php @@ -32,7 +32,7 @@ start_table(); foreach ($posts as $post) { $thread = BoincThread::lookup_id($post->thread); $forum = BoincForum::lookup_id($thread->forum); - show_post($post, $thread, $forum, $logged_in_user, $n+$offset+1); + show_post($post, $thread, $forum, $logged_in_user, 0, $n+$offset+1); $n++; } echo "\n";