Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • Loading branch information...
commit eb6492e62ff270902d1ead1abb6f820bcc89775d 1 parent 444433b
@bostelm bostelm authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/resource/locallib.php
View
4 mod/resource/locallib.php
@@ -408,7 +408,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
*/
@@ -428,7 +428,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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.