Commit f90b4065 authored by mattwire's avatar mattwire

Allow setting mimetype via mimetype param in buildAset

parent 44e11463
......@@ -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'];
}
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment