From df0671f0d26a75896d93882fa0cf22e88f135877 Mon Sep 17 00:00:00 2001 From: Henning Bostelmann Date: Fri, 6 Sep 2013 13:35:08 +0100 Subject: [PATCH] MDL-29987 File resource: fix problem with PDF display on mobile devices Setting the default display option for PDF files from DISPLAY_EMBED to DISPLAY_OPEN --- mod/resource/locallib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/resource/locallib.php b/mod/resource/locallib.php index 9dcef6330ce..de0a00a310f 100644 --- a/mod/resource/locallib.php +++ b/mod/resource/locallib.php @@ -404,7 +404,7 @@ function resource_print_filenotfound($resource, $cm, $course) { } /** - * Decide the best diaply format. + * Decide the best display format. * @param object $resource * @return int display type constant */ @@ -424,7 +424,7 @@ function resource_get_final_display_type($resource) { if (file_mimetype_in_typegroup($mimetype, 'archive')) { return RESOURCELIB_DISPLAY_DOWNLOAD; } - if (file_mimetype_in_typegroup($mimetype, array('web_image', '.pdf', '.htm', 'web_video', 'web_audio'))) { + if (file_mimetype_in_typegroup($mimetype, array('web_image', '.htm', 'web_video', 'web_audio'))) { return RESOURCELIB_DISPLAY_EMBED; }