MDL-37687 use $SITE to allow non-logged-in users to browse comment via ajax

This commit is contained in:
Aparup Banerjee 2013-02-12 16:19:40 +08:00
parent b3778a0dec
commit cff7e83d2d

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