Attempt to minimise asset_url errors.
This commit is contained in:
parent
0d7fd324fc
commit
80f30074ab
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue