mirror of
https://github.com/moodle/moodle.git
synced 2025-04-07 09:23:31 +02:00
Merge branch 'MDL-53702_master' of https://github.com/liorgil/moodle
This commit is contained in:
commit
d7eb33652f
@ -1823,8 +1823,6 @@ function forum_get_all_discussion_posts($discussionid, $sort, $tracking=false) {
|
||||
$params = array();
|
||||
|
||||
if ($tracking) {
|
||||
$now = time();
|
||||
$cutoffdate = $now - ($CFG->forum_oldpostdays * 24 * 3600);
|
||||
$tr_sel = ", fr.id AS postread";
|
||||
$tr_join = "LEFT JOIN {forum_read} fr ON (fr.postid = p.id AND fr.userid = ?)";
|
||||
$params[] = $USER->id;
|
||||
@ -2935,8 +2933,6 @@ function forum_get_discussions_count($cm) {
|
||||
$groupselect = "";
|
||||
}
|
||||
|
||||
$cutoffdate = $now - ($CFG->forum_oldpostdays*24*60*60);
|
||||
|
||||
$timelimit = "";
|
||||
|
||||
if (!empty($CFG->forum_enabletimedposts)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user