mirror of
https://github.com/getgrav/grav.git
synced 2026-07-05 09:18:43 +02:00
Minor fix, oops
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user