Skip to content

Commit

Permalink
Added 'trackforums' to the fields retrieved for 'forum_subscribed_use…
Browse files Browse the repository at this point in the history
…rs' so

that emailed posts are marked as 'read' correctly.
  • Loading branch information
mchurch committed May 2, 2005
1 parent 81ecb44 commit 4822e9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod/forum/lib.php
Expand Up @@ -1331,7 +1331,7 @@ function forum_subscribed_users($course, $forum, $groupid=0) {
}
}
return get_records_sql("SELECT u.id, u.username, u.firstname, u.lastname, u.maildisplay, u.mailformat, u.maildigest, u.emailstop,
u.email, u.city, u.country, u.lastaccess, u.lastlogin, u.picture, u.timezone, u.lang
u.email, u.city, u.country, u.lastaccess, u.lastlogin, u.picture, u.timezone, u.lang, u.trackforums
FROM {$CFG->prefix}user u,
{$CFG->prefix}forum_subscriptions s $grouptables
WHERE s.forum = '$forum->id'
Expand Down Expand Up @@ -1539,7 +1539,7 @@ function forum_print_post(&$post, $courseid, $ownpost=false, $reply=false, $link
$strreply = get_string('reply', 'forum');
$strparent = get_string('parent', 'forum');
$strpruneheading = get_string('pruneheading', 'forum');
$strprune = get_string('prune', 'forum');
$strprune = get_tring('prune', 'forum');
$threadedmode = (!empty($USER->mode) and ($USER->mode == FORUM_MODE_THREADED));
$isteacher = isteacher($courseid);
$adminedit = (isadmin() and !empty($CFG->admineditalways));
Expand Down

0 comments on commit 4822e9d

Please sign in to comment.