mirror of
https://github.com/flarum/framework.git
synced 2024-11-28 11:34:36 +08: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);
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user