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 adf95a7 commit edac889Copy full SHA for edac889
src/ImageStorage.php
@@ -253,13 +253,13 @@ public function getNoImage(bool $return_image = false): Image
253
$new_path = sprintf('%s/%s', $this->data_path, $identifier);
254
255
if (!file_exists($new_path)) {
256
- $dirName = dirname($identifier);
+ $dirName = dirname($new_path);
257
258
if (!file_exists($dirName)) {
259
mkdir($dirName, 0777, true);
260
}
261
262
- if (!file_exists($dirName) || !is_writable($new_path)) {
+ if (!file_exists($dirName) || !is_writable($dirName)) {
263
throw new ImageStorageException('Could not create default no_image.png. ' . $dirName . ' does not exist or is not writable.');
264
265
0 commit comments