Merge branch 'MDL-54941-master-fixes' of https://github.com/andrewnicols/moodle

This commit is contained in:
Andrew Nicols
2016-08-03 14:35:08 +08:00
+1 -1
View File
@@ -142,7 +142,7 @@ class mod_glossary_external extends external_api {
$entry->attachment = !empty($entry->attachment) ? 1 : 0;
$entry->attachments = array();
if ($entry->attachment) {
$files = external_util::get_area_files($context->id, 'mod_glossary', 'attachment', $entry->id);
$entry->attachments = external_util::get_area_files($context->id, 'mod_glossary', 'attachment', $entry->id);
}
}