diff --git a/system/src/Grav/Framework/File/Formatter/AbstractFormatter.php b/system/src/Grav/Framework/File/Formatter/AbstractFormatter.php index 852f4e5b2..db7958ccd 100644 --- a/system/src/Grav/Framework/File/Formatter/AbstractFormatter.php +++ b/system/src/Grav/Framework/File/Formatter/AbstractFormatter.php @@ -57,8 +57,10 @@ abstract class AbstractFormatter implements FormatterInterface */ public function getSupportedFileExtensions(): array { + $extensions = $this->getConfig('file_extension'); + // Call fails on bad configuration. - return $this->getConfig('file_extension'); + return \is_string($extensions) ? [$extensions] : $extensions; } /**