Permalink
Browse files

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

…a ajax
  • Loading branch information...
nebgor authored and damyon committed Feb 12, 2013
1 parent ff1d655 commit 3026cb9910e224cfba326657bc53d3e68be8387f
Showing with 4 additions and 0 deletions.
  1. +4 −0 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

0 comments on commit 3026cb9

Please sign in to comment.