mirror of
https://github.com/flarum/framework.git
synced 2025-03-15 00:05:12 +08:00
Fix filesystem wrong method call
The proper method is `exists`, not `has`.
This commit is contained in:
parent
54b52051a9
commit
c39724eae2
@ -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…
x
Reference in New Issue
Block a user