Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
marcantondahmen committed Jun 30, 2024
1 parent 3879ad2 commit 112f070
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions automad/src/server/Models/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ class Image {
public static function save(string $path, string $name, string $extension, string $base64, Messenger $Messenger): void {
if (!in_array($extension, FileUtils::allowedFileTypes())) {
$Messenger->setError(
Text::get('unsupportedFileTypeError') . ' "' .
FileSystem::getExtension($extension) . '"'
Text::get('unsupportedFileTypeError') . ' "' . $extension . '"'
);

return;
Expand Down

0 comments on commit 112f070

Please # to comment.