Permalink
Browse files

FIlter wasn't using site databases globally

  • Loading branch information...
1 parent 4ef4cff commit 886583bf6d3fbe052aa8b69998388b9aa6bca80a moodler committed Mar 26, 2006
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/data/filter.php
View
@@ -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
}
-?>
+?>

0 comments on commit 886583b

Please sign in to comment.