Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3778a0
)
MDL-37687 use $SITE to allow non-logged-in users to browse comment via ajax
author
Aparup Banerjee
<aparup@moodle.com>
Tue, 12 Feb 2013 08:19:40 +0000
(16:19 +0800)
committer
Aparup Banerjee
<aparup@moodle.com>
Tue, 12 Feb 2013 08:19:40 +0000
(16:19 +0800)
comment/comment_ajax.php
patch
|
blob
|
blame
|
history
diff --git
a/comment/comment_ajax.php
b/comment/comment_ajax.php
index
91b99ca
..
131a803
100644
(file)
--- a/
comment/comment_ajax.php
+++ b/
comment/comment_ajax.php
@@
-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