mirror of
https://github.com/moodle/moodle.git
synced 2025-04-12 20:12:15 +02:00
MDL-30707 mod_forum: fixed a add_to_log() call that was causing invalid URLs to be added to the log
This commit is contained in:
parent
216f6d8e9d
commit
02c34fe143
@ -117,7 +117,7 @@
|
||||
redirect($return.'&moved=-1&sesskey='.sesskey());
|
||||
}
|
||||
|
||||
add_to_log($course->id, 'forum', 'view discussion', $PAGE->url->out(false), $discussion->id, $cm->id);
|
||||
add_to_log($course->id, 'forum', 'view discussion', "discuss.php?d=$discussion->id", $discussion->id, $cm->id);
|
||||
|
||||
unset($SESSION->fromdiscussion);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user