From aae0a965b78b552b3a6012e70dd5bfee6fce1ba5 Mon Sep 17 00:00:00 2001 From: Denis Ryabov Date: Mon, 10 May 2021 20:23:29 +0300 Subject: [PATCH] use existing var --- .../components/com_jedchecker/controllers/uploads.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/administrator/components/com_jedchecker/controllers/uploads.php b/administrator/components/com_jedchecker/controllers/uploads.php index e3f6834..0932abb 100644 --- a/administrator/components/com_jedchecker/controllers/uploads.php +++ b/administrator/components/com_jedchecker/controllers/uploads.php @@ -54,7 +54,7 @@ class JedcheckerControllerUploads extends JControllerLegacy public function upload() { $appl = JFactory::getApplication(); - $input = JFactory::getApplication()->input; + $input = $appl->input; // Check the sent token by the form JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN')); @@ -164,7 +164,7 @@ class JedcheckerControllerUploads extends JControllerLegacy // Scan unzipped folders if we find zip file -> unzip them as well $this->unzipAll($this->pathUnzipped . '/' . $file[0]); $message = 'COM_JEDCHECKER_UNZIP_SUCCESS'; - JFactory::getApplication()->enqueueMessage(JText::_($message)); + $appl->enqueueMessage(JText::_($message)); } else {