From 9af08117d9403c18e8538058beda5da342c1f8ba Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 23 Feb 2021 00:05:56 +0100 Subject: [PATCH] Uploading too many attachments yields an incorrect error type --- .../files/lib/data/attachment/AttachmentAction.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/data/attachment/AttachmentAction.class.php b/wcfsetup/install/files/lib/data/attachment/AttachmentAction.class.php index f6155c1042..d7b5b08884 100644 --- a/wcfsetup/install/files/lib/data/attachment/AttachmentAction.class.php +++ b/wcfsetup/install/files/lib/data/attachment/AttachmentAction.class.php @@ -115,7 +115,7 @@ class AttachmentAction extends AbstractDatabaseObjectAction implements ISortable $handler = new AttachmentHandler($this->parameters['objectType'], intval($this->parameters['objectID']), $this->parameters['tmpHash']); /** @noinspection PhpUndefinedMethodInspection */ if ($handler->count() + count($this->parameters['__files']->getFiles()) > $processor->getMaxCount()) { - throw new UserInputException('files', 'exceededQuota', [ + throw new UserInputException('files', 'reachedLimit', [ 'current' => $handler->count(), 'quota' => $processor->getMaxCount() ]); -- 2.20.1