MDL-22955 theme: Added ability to use SVG format for icons

This commit is contained in:
Sam Hemelryk
2012-10-08 09:16:14 +13:00
parent ccd90e765e
commit 436dbeecda
11 changed files with 370 additions and 29 deletions
+1 -1
View File
@@ -3779,7 +3779,7 @@ function file_pluginfile($relativepath, $forcedownload, $preview = null) {
}
// no redirect here because it is not cached
$theme = theme_config::load($themename);
$imagefile = $theme->resolve_image_location('u/'.$filename, 'moodle');
$imagefile = $theme->resolve_image_location('u/'.$filename, 'moodle', null);
send_file($imagefile, basename($imagefile), 60*60*24*14);
}