mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
FIlter wasn't using site databases globally
This commit is contained in:
parent
4ef4cff973
commit
886583bf6d
1 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@
|
||||||
$CFG->prefix.'data_fields AS df, ' .
|
$CFG->prefix.'data_fields AS df, ' .
|
||||||
$CFG->prefix.'data_records AS dr, ' .
|
$CFG->prefix.'data_records AS dr, ' .
|
||||||
$CFG->prefix.'data_content AS dc ' .
|
$CFG->prefix.'data_content AS dc ' .
|
||||||
"WHERE d.course = '$courseid' " .
|
"WHERE (d.course = '$courseid' or d.course = '".SITEID."')" .
|
||||||
'AND d.id = df.dataid ' .
|
'AND d.id = df.dataid ' .
|
||||||
'AND df.id = dc.fieldid ' .
|
'AND df.id = dc.fieldid ' .
|
||||||
'AND d.id = dr.dataid ' .
|
'AND d.id = dr.dataid ' .
|
||||||
|
@ -66,4 +66,4 @@
|
||||||
return filter_phrases($text, $contentlist); // Look for all these links in the text
|
return filter_phrases($text, $contentlist); // Look for all these links in the text
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue