Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-33829 mod_glossary: added some smarts so glossary entries with an…

… image in their description are classed as richhtml instead of plainhtml
  • Loading branch information...
commit e1f24eb46e3b0c9e15e4baff33795cc9cdd63afe 1 parent 6d84d37
@andyjdavis andyjdavis authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 mod/glossary/lib.php
View
4 mod/glossary/lib.php
@@ -1143,7 +1143,9 @@ function glossary_print_entry_icons($course, $cm, $glossary, $entry, $mode='',$h
}
}
$fs = get_file_storage();
- if ($files = $fs->get_area_files($filecontext->id, 'mod_glossary', 'attachment', $entry->id, "timemodified", false)) {
+ if ($files = $fs->get_area_files($filecontext->id, 'mod_glossary', 'attachment', $entry->id, "timemodified", false)
+ || $files = $fs->get_area_files($filecontext->id, 'mod_glossary', 'entry', $entry->id, "timemodified", false)) {
+
$button->set_formats(PORTFOLIO_FORMAT_RICHHTML);
} else {
$button->set_formats(PORTFOLIO_FORMAT_PLAINHTML);
Please sign in to comment.
Something went wrong with that request. Please try again.