From c39724eae2f87bdaa53689060c351d0dc0f68a5a Mon Sep 17 00:00:00 2001 From: Alexander Skvortsov Date: Mon, 17 May 2021 18:04:08 -0400 Subject: [PATCH] Fix filesystem wrong method call The proper method is `exists`, not `has`. --- framework/core/src/Api/Controller/UploadImageController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/src/Api/Controller/UploadImageController.php b/framework/core/src/Api/Controller/UploadImageController.php index 7794c59e6..f00b70733 100644 --- a/framework/core/src/Api/Controller/UploadImageController.php +++ b/framework/core/src/Api/Controller/UploadImageController.php @@ -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); }