Bugfix
This commit is contained in:
@@ -7,9 +7,12 @@ use Contao\FilesModel;
|
|||||||
|
|
||||||
class MeilisearchImageHelper
|
class MeilisearchImageHelper
|
||||||
{
|
{
|
||||||
public function __construct(
|
private $imageStudio;
|
||||||
private readonly $imageStudio
|
|
||||||
) {}
|
public function __construct($imageStudio)
|
||||||
|
{
|
||||||
|
$this->imageStudio = $imageStudio;
|
||||||
|
}
|
||||||
|
|
||||||
public function getImagePathFromUuid(string $uuid): ?string
|
public function getImagePathFromUuid(string $uuid): ?string
|
||||||
{
|
{
|
||||||
@@ -19,7 +22,7 @@ class MeilisearchImageHelper
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// SVG → nicht skalieren
|
// SVG niemals skalieren
|
||||||
if (str_ends_with(strtolower($file->path), '.svg')) {
|
if (str_ends_with(strtolower($file->path), '.svg')) {
|
||||||
return '/' . ltrim($file->path, '/');
|
return '/' . ltrim($file->path, '/');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user