33
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2024-12-01 01:03:55 +00:00

use existing var

This commit is contained in:
Denis Ryabov 2021-05-10 20:23:29 +03:00
parent 14aa58899b
commit aae0a965b7

View File

@ -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
{