mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-9241 Fixed a typo: used if($mimetype = 'application/x-pdf') instead of ==
This commit is contained in:
parent
632730fdd7
commit
47c97990b2
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user