mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 18:06:51 +02:00
MDL-33829 mod_glossary: added some smarts so glossary entries with an image in their description are classed as richhtml instead of plainhtml
This commit is contained in:
parent
06b53930ab
commit
2403ea411c
1 changed files with 3 additions and 1 deletions
|
@ -1282,7 +1282,9 @@ function glossary_print_entry_icons($course, $cm, $glossary, $entry, $mode='',$h
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$fs = get_file_storage();
|
$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);
|
$button->set_formats(PORTFOLIO_FORMAT_RICHHTML);
|
||||||
} else {
|
} else {
|
||||||
$button->set_formats(PORTFOLIO_FORMAT_PLAINHTML);
|
$button->set_formats(PORTFOLIO_FORMAT_PLAINHTML);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue