Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-37687 use $SITE to allow non-logged-in users to browse comment vi…

…a ajax
  • Loading branch information...
commit cff7e83d2d7286e62d1e0e0350a74f47e6091a58 1 parent b3778a0
Aparup Banerjee nebgor authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 comment/comment_ajax.php
4 comment/comment_ajax.php
View
@@ -35,6 +35,10 @@
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
Please sign in to comment.
Something went wrong with that request. Please try again.