Skip to content
Snippets Groups Projects
Commit f90b4065 authored by mattwire's avatar mattwire
Browse files

Allow setting mimetype via mimetype param in buildAset

parent 44e11463
No related branches found
No related tags found
1 merge request!60.7
......@@ -179,5 +179,9 @@ function mjwshared_symfony_civicrm_buildAsset($event, $hook) {
if (empty($event->content) && !empty($event->params['path'])) {
$event->content = file_get_contents($event->params['path']);
}
if (empty($event->mimeType) && !empty($event->params['mimetype'])) {
$event->mimeType = $event->params['mimetype'];
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment