From 634447d7c68f2bc8de9760d3b92bfd4ec2df6a26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Wed, 30 Aug 2023 15:37:25 +0200 Subject: [PATCH] MOBILE-4407 resources: Show resource mimetype icon --- src/addons/mod/resource/services/handlers/module.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/addons/mod/resource/services/handlers/module.ts b/src/addons/mod/resource/services/handlers/module.ts index 0e28f77ad..8d112fb72 100644 --- a/src/addons/mod/resource/services/handlers/module.ts +++ b/src/addons/mod/resource/services/handlers/module.ts @@ -20,7 +20,6 @@ import { CoreCourseModuleData } from '@features/course/services/course-helper'; import { CoreCourseModuleHandler, CoreCourseModuleHandlerData } from '@features/course/services/module-delegate'; import { CoreCourseModulePrefetchDelegate } from '@features/course/services/module-prefetch-delegate'; import { CoreFileHelper } from '@services/file-helper'; -import { CoreSites } from '@services/sites'; import { CoreMimetypeUtils } from '@services/utils/mimetype'; import { CoreTextUtils } from '@services/utils/text'; import { CoreTimeUtils } from '@services/utils/time'; @@ -229,9 +228,6 @@ export class AddonModResourceModuleHandlerService extends CoreModuleHandlerBase return; } - if (CoreSites.getCurrentSite()?.isVersionGreaterEqualThan('4.0')) { - return CoreCourse.getModuleIconSrc(module.modname, module.modicon); - } let mimetypeIcon = ''; if (module.contentsinfo) {