From: nicolasconnault Date: Wed, 11 Apr 2007 06:15:23 +0000 (+0000) Subject: MDL-9241 Fixed a typo: used if($mimetype = 'application/x-pdf') instead of == X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=47c97990b25226bef1f708f4c1673c4ec16b2eea;p=moodle.git MDL-9241 Fixed a typo: used if($mimetype = 'application/x-pdf') instead of == --- diff --git a/mod/resource/type/file/resource.class.php b/mod/resource/type/file/resource.class.php index 368b32abda..f0f061181a 100644 --- a/mod/resource/type/file/resource.class.php +++ b/mod/resource/type/file/resource.class.php @@ -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; }