Permalink
Browse files

MDL-30707 mod_forum: fixed a add_to_log() call that was causing inval…

…id URLs to be added to the log
  • Loading branch information...
1 parent 1aff7bb commit cec66207be8031dbb99a9772f49ecad8fa341553 @andyjdavis andyjdavis committed Dec 29, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/forum/discuss.php
View
2 mod/forum/discuss.php
@@ -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);

0 comments on commit cec6620

Please sign in to comment.