From 69623b22d819c4d6e1fe02ba61b3ef805f0054f3 Mon Sep 17 00:00:00 2001 From: mufac Date: Tue, 1 Sep 2015 19:45:59 -0500 Subject: [PATCH] Fix missing dollar sign grav_limit was a constant when it should be a variable. --- classes/controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/controller.php b/classes/controller.php index a964b0b7..461b21cf 100644 --- a/classes/controller.php +++ b/classes/controller.php @@ -517,7 +517,7 @@ class AdminController $grav_limit = $config->get('system.media.upload_limit', 0); // You should also check filesize here. - if ($grav_limit > 0 && $_FILES['file']['size'] > grav_limit) { + if ($grav_limit > 0 && $_FILES['file']['size'] > $grav_limit) { $this->admin->json_response = ['status' => 'error', 'message' => $this->admin->translate('PLUGIN_ADMIN.EXCEEDED_GRAV_FILESIZE_LIMIT')]; return; }