From 19223525fae8f0cbba9f807c3f87d70c9bc0af5e Mon Sep 17 00:00:00 2001 From: moodler Date: Thu, 5 Aug 2004 18:13:59 +0000 Subject: [PATCH] Removed Martin's mistaken addition from a few days ago --- mod/resource/restorelib.php | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/mod/resource/restorelib.php b/mod/resource/restorelib.php index c4c377e3fb..1f8ce293ab 100644 --- a/mod/resource/restorelib.php +++ b/mod/resource/restorelib.php @@ -64,23 +64,6 @@ $oldtype = $resource->type; $resource->type = $types[$oldtype]; $resource->options = $options[$oldtype]; - - //Finally, check some specific mimetypes to decide when to set the frame option - //making the restore smoother...:-) - require_once("$CFG->dirroot/files/mimetypes.php"); - $embedded = false; - if ($resource->type == 'file' and !$resource->options and !$resource->popup) { - $mimetype = mimeinfo("type", $resource->reference); - if (in_array($mimetype, array('image/gif','image/jpeg','image/png')) - or (substr($mimetype, 0, 10) == "video/x-ms") - or ($mimetype == "audio/mp3") - or ($mimetype == "video/quicktime")) { - $embedded = true; - } - if (!$embedded) { - $resource->options = 'frame'; - } - } } //The structure is equal to the db, so insert the resource -- 2.39.5