Skip to content

Commit 0d48039

Browse files
committed
no exception in Asset::absolute_path
1 parent d6a793e commit 0d48039

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/Model/Entity/Asset.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,8 @@ protected function _getAbsolutePath(): string
7676
if (is_readable($relativeOrAbsolute)) {
7777
return $relativeOrAbsolute;
7878
}
79-
$path = ROOT . $relativeOrAbsolute;
80-
if (is_readable($path)) {
81-
return $path;
82-
}
83-
throw new \Exception('Could not find image file.');
79+
80+
return ROOT . $relativeOrAbsolute;
8481
}
8582

8683
/**

0 commit comments

Comments
 (0)