Browse files

MDL-12694: Same change as in 1.9. Files that can be embedded will be …

…embedded regardless of resource frame settings.
  • Loading branch information...
1 parent 52d3a9e commit f653c544e9412156d4fd32b76e45ff25a38fa9d4 mchurch committed Jan 23, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/resource/type/file/resource.class.php
View
2 mod/resource/type/file/resource.class.php
@@ -215,7 +215,7 @@ function display() {
$formatoptions = new object();
$formatoptions->noclean = true;
- if ($resource->options == "frame") { // TODO nicolasconnault 14-03-07: This option should be renamed "embed"
+ if ($resource->options != "bogusoption_usedtobe_frame") { // TODO nicolasconnault 14-03-07: This option should be renamed "embed"
if (in_array($mimetype, array('image/gif','image/jpeg','image/png'))) { // It's an image
$resourcetype = "image";
$embedded = true;

0 comments on commit f653c54

Please sign in to comment.