Merge branch 'MDL-37687_comments_ajax_fix' of git://github.com/nebgor/moodle

This commit is contained in:
Damyon Wiese 2013-02-18 14:51:50 +08:00
commit 74f3d44d37

View file

@ -35,6 +35,10 @@ if (empty($CFG->usecomments)) {
list($context, $course, $cm) = get_context_info_array($contextid);
if ( $contextid == SYSCONTEXTID ) {
$course = $SITE;
}
$PAGE->set_url('/comment/comment_ajax.php');
// Allow anonymous user to view comments providing forcelogin now enabled