MDL-9241 Fixed a typo: used if($mimetype = 'application/x-pdf') instead of ==
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user