# This patch file was generated by NetBeans IDE # This patch can be applied using context Tools: Apply Diff Patch action on respective folder. # It uses platform neutral UTF-8 encoding. # Above lines and this line are ignored by the patching process. Index: moodle/mod/resource/type/file/resource.class.php --- moodle/mod/resource/type/file/resource.class.php Base (1.71.2.26) +++ moodle/mod/resource/type/file/resource.class.php Locally Modified (Based On 1.71.2.26) @@ -3,6 +3,7 @@ /** * Extend the base resource class for file resources */ + class resource_file extends resource_base { function resource_file($cmid=0) { @@ -12,7 +13,6 @@ var $parameters; var $maxparameters = 5; - /** * Sets the parameters property of the extended class * @@ -265,7 +265,8 @@ } else if ($mimetype == 'application/pdf' || $mimetype == 'application/x-pdf') { $resourcetype = "pdf"; - $embedded = true; + //no need embedded, html file types behave like unknown file type + } else if ($mimetype == "audio/x-pn-realaudio") { // It's a realmedia file $resourcetype = "rm"; $embedded = true; @@ -691,13 +692,6 @@ echo get_string('clicktoopen', 'resource') . '' . format_string($resource->name) . ''; echo ''; - } elseif ($resourcetype == 'pdf') { - echo '