mirror of
https://github.com/getgrav/grav.git
synced 2026-02-11 09:07:49 +01:00
Merge pull request #295 from mufac/patch-2
Set default when config option is empty
This commit is contained in:
@@ -455,7 +455,7 @@ class Grav extends Container
|
||||
|
||||
if ($extension) {
|
||||
$download = true;
|
||||
if (in_array(ltrim($extension, '.'), $this['config']->get('system.media.unsupported_inline_types'))) {
|
||||
if (in_array(ltrim($extension, '.'), $this['config']->get('system.media.unsupported_inline_types', []))) {
|
||||
$download = false;
|
||||
}
|
||||
Utils::download($page->path() . DIRECTORY_SEPARATOR . $uri->basename(), $download);
|
||||
|
||||
Reference in New Issue
Block a user