mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-05 04:46:03 +01:00
Avoid returning an error in Admin itself, just in the JSON response
This prevents the error to appear on a subsequent admin page reload
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user