#312 Validate that asset exists

This commit is contained in:
Daniel Brendel
2024-12-15 12:20:05 +01:00
parent c36af0866a
commit 38df593aa6

View File

@@ -536,6 +536,10 @@ class UtilsModule {
return $asset;
}
if (!file_exists(public_path() . '/img/' . $asset)) {
return asset('img/placeholder.jpg');
}
return asset('img/' . $asset);
}