mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Merge branch 'MDL-53702_master' of https://github.com/liorgil/moodle
This commit is contained in:
commit
d7eb33652f
1 changed files with 0 additions and 4 deletions
|
@ -1823,8 +1823,6 @@ function forum_get_all_discussion_posts($discussionid, $sort, $tracking=false) {
|
||||||
$params = array();
|
$params = array();
|
||||||
|
|
||||||
if ($tracking) {
|
if ($tracking) {
|
||||||
$now = time();
|
|
||||||
$cutoffdate = $now - ($CFG->forum_oldpostdays * 24 * 3600);
|
|
||||||
$tr_sel = ", fr.id AS postread";
|
$tr_sel = ", fr.id AS postread";
|
||||||
$tr_join = "LEFT JOIN {forum_read} fr ON (fr.postid = p.id AND fr.userid = ?)";
|
$tr_join = "LEFT JOIN {forum_read} fr ON (fr.postid = p.id AND fr.userid = ?)";
|
||||||
$params[] = $USER->id;
|
$params[] = $USER->id;
|
||||||
|
@ -2935,8 +2933,6 @@ function forum_get_discussions_count($cm) {
|
||||||
$groupselect = "";
|
$groupselect = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
$cutoffdate = $now - ($CFG->forum_oldpostdays*24*60*60);
|
|
||||||
|
|
||||||
$timelimit = "";
|
$timelimit = "";
|
||||||
|
|
||||||
if (!empty($CFG->forum_enabletimedposts)) {
|
if (!empty($CFG->forum_enabletimedposts)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue