]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-9241 Fixed a typo: used if($mimetype = 'application/x-pdf') instead of ==
authornicolasconnault <nicolasconnault>
Wed, 11 Apr 2007 06:15:23 +0000 (06:15 +0000)
committernicolasconnault <nicolasconnault>
Wed, 11 Apr 2007 06:15:23 +0000 (06:15 +0000)
mod/resource/type/file/resource.class.php

index 368b32abda1097cf1a0a8bea68f261007bd004f5..f0f061181a5c9daeb7e24ab9f15c0c966d93895f 100644 (file)
@@ -242,7 +242,7 @@ function display() {
 
         } else if ($mimetype == "text/html") {    // It's a web page
             $resourcetype = "html";
-        } else if ($mimetype == 'application/pdf' || $mimetype = 'application/x-pdf') {
+        } else if ($mimetype == 'application/pdf' || $mimetype == 'application/x-pdf') {
             $resourcetype = "pdf";
             $embedded = true;
         }