From 75f45bdb47fafb2215dc7784072f58fa06f78602 Mon Sep 17 00:00:00 2001 From: objecttothis Date: Fri, 8 May 2020 16:04:37 +0400 Subject: [PATCH] Corrected variable names --- application/controllers/Items.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/application/controllers/Items.php b/application/controllers/Items.php index 25a85747a..deaf08a13 100644 --- a/application/controllers/Items.php +++ b/application/controllers/Items.php @@ -669,10 +669,10 @@ class Items extends Secure_Controller { //Load upload library $config = array('upload_path' => './uploads/item_pics/', - 'image_allowed_types' => $this->config->item('image_allowed_types'), - 'image_max_size' => $this->config->item('image_max_size'), - 'image_max_width' => $this->config->item('image_max_width'), - 'image_max_height' => $this->config->item('image_max_height')); + 'allowed_types' => $this->config->item('image_allowed_types'), + 'max_size' => $this->config->item('image_max_size'), + 'max_width' => $this->config->item('image_max_width'), + 'max_height' => $this->config->item('image_max_height')); $this->load->library('upload', $config); $this->upload->do_upload('item_image');