mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
Some small robustness things, and a new style for quiz feedback text
This commit is contained in:
parent
1079c8a872
commit
c897eac5e4
11 changed files with 25 additions and 3 deletions
|
@ -27,7 +27,7 @@ function mimeinfo($element, $filename) {
|
|||
$result = $mimeinfo[strtolower($match[1])][$element];
|
||||
}
|
||||
|
||||
if ($result) {
|
||||
if (!empty($result)) {
|
||||
return $result;
|
||||
} else {
|
||||
return $mimeinfo["xxx"][$element]; // By default
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue