mirror of
https://github.com/flarum/core.git
synced 2025-05-15 20:05:58 +02:00
Fix filesystem wrong method call
The proper method is `exists`, not `has`.
This commit is contained in:
parent
be7581c432
commit
a5182a1454
@ -68,7 +68,7 @@ abstract class UploadImageController extends ShowForumController
|
|||||||
|
|
||||||
$encodedImage = $this->makeImage($file);
|
$encodedImage = $this->makeImage($file);
|
||||||
|
|
||||||
if (($path = $this->settings->get($this->filePathSettingKey)) && $this->uploadDir->has($path)) {
|
if (($path = $this->settings->get($this->filePathSettingKey)) && $this->uploadDir->exists($path)) {
|
||||||
$this->uploadDir->delete($path);
|
$this->uploadDir->delete($path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user