From 57a7a60efde21cf48c77df7c894d72e2b73347ef Mon Sep 17 00:00:00 2001 From: Flavio Copes Date: Sat, 19 Mar 2016 15:41:46 +0100 Subject: [PATCH] Avoid returning an error in Admin itself, just in the JSON response This prevents the error to appear on a subsequent admin page reload --- classes/controller.php | 1 - 1 file changed, 1 deletion(-) diff --git a/classes/controller.php b/classes/controller.php index 40c6cdfd..5e0b85e3 100644 --- a/classes/controller.php +++ b/classes/controller.php @@ -115,7 +115,6 @@ class AdminController $message = sprintf($this->admin->translate('PLUGIN_ADMIN.FILE_TOO_LARGE', null, true), ini_get('post_max_size')); //In this case it's more likely that the image is too big than POST can handle. Show message - $this->admin->setMessage($message, 'error'); $this->admin->json_response = [ 'status' => 'error', 'message' => $message