mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +02:00
Merge branch 'MDL-37687_comments_ajax_fix' of git://github.com/nebgor/moodle
This commit is contained in:
commit
74f3d44d37
1 changed files with 4 additions and 0 deletions
|
@ -35,6 +35,10 @@ if (empty($CFG->usecomments)) {
|
||||||
|
|
||||||
list($context, $course, $cm) = get_context_info_array($contextid);
|
list($context, $course, $cm) = get_context_info_array($contextid);
|
||||||
|
|
||||||
|
if ( $contextid == SYSCONTEXTID ) {
|
||||||
|
$course = $SITE;
|
||||||
|
}
|
||||||
|
|
||||||
$PAGE->set_url('/comment/comment_ajax.php');
|
$PAGE->set_url('/comment/comment_ajax.php');
|
||||||
|
|
||||||
// Allow anonymous user to view comments providing forcelogin now enabled
|
// Allow anonymous user to view comments providing forcelogin now enabled
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue