We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6a793e commit 0d48039Copy full SHA for 0d48039
1 file changed
src/Model/Entity/Asset.php
@@ -76,11 +76,8 @@ protected function _getAbsolutePath(): string
76
if (is_readable($relativeOrAbsolute)) {
77
return $relativeOrAbsolute;
78
}
79
- $path = ROOT . $relativeOrAbsolute;
80
- if (is_readable($path)) {
81
- return $path;
82
- }
83
- throw new \Exception('Could not find image file.');
+
+ return ROOT . $relativeOrAbsolute;
84
85
86
/**
0 commit comments