Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

FIlter wasn't using site databases globally

  • Loading branch information...
commit 886583bf6d3fbe052aa8b69998388b9aa6bca80a 1 parent 4ef4cff
moodler authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/data/filter.php
View
4 mod/data/filter.php
@@ -33,7 +33,7 @@ function data_filter($courseid, $text) {
$CFG->prefix.'data_fields AS df, ' .
$CFG->prefix.'data_records AS dr, ' .
$CFG->prefix.'data_content AS dc ' .
- "WHERE d.course = '$courseid' " .
+ "WHERE (d.course = '$courseid' or d.course = '".SITEID."')" .
'AND d.id = df.dataid ' .
'AND df.id = dc.fieldid ' .
'AND d.id = dr.dataid ' .
@@ -66,4 +66,4 @@ function data_filter($courseid, $text) {
return filter_phrases($text, $contentlist); // Look for all these links in the text
}
-?>
+?>
Please sign in to comment.
Something went wrong with that request. Please try again.