MDL-9241 Fixed a typo: used if($mimetype = 'application/x-pdf') instead of ==

This commit is contained in:
nicolasconnault 2007-04-11 06:15:23 +00:00
parent 632730fdd7
commit 47c97990b2

View 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;
}