Attempt to minimise asset_url errors.

This commit is contained in:
flash 2018-08-12 16:01:26 +02:00
parent 0d7fd324fc
commit 80f30074ab

View file

@ -48,7 +48,7 @@ function asset_url(string $path): string
{ {
$realPath = realpath(__DIR__ . '/public/' . $path); $realPath = realpath(__DIR__ . '/public/' . $path);
if ($realPath === false) { if ($realPath === false || !file_exists($realPath)) {
return $path; return $path;
} }