MDL-79534 contenttype_h5p: correct fallback file used for icons.

This commit is contained in:
Paul Holden
2023-09-28 17:39:28 +01:00
parent c6e727732a
commit d7db5f08b0
@@ -82,7 +82,7 @@ class contenttype extends \core_contentbank\contenttype {
public function get_icon(\core_contentbank\content $content): string {
global $OUTPUT, $DB;
$iconurl = $OUTPUT->image_url('f/h5p-64', 'moodle')->out(false);
$iconurl = $OUTPUT->image_url('f/h5p')->out(false);
$file = $content->get_file();
if (!empty($file)) {
$h5p = \core_h5p\api::get_content_from_pathnamehash($file->get_pathnamehash());