mirror of
https://github.com/joomla-extensions/jedchecker.git
synced 2025-02-02 18:28:23 +00:00
# JFile not found
This commit is contained in:
parent
4eb3543b01
commit
6792e66b07
@ -10,11 +10,18 @@
|
|||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
jimport('joomla.application.component.controllerlegacy');
|
jimport('joomla.application.component.controllerlegacy');
|
||||||
|
|
||||||
|
// We'll need jfile and JFolder all through the compoenent so let us load them here
|
||||||
|
jimport('joomla.filesystem.folder');
|
||||||
|
jimport('joomla.filesystem.file');
|
||||||
|
|
||||||
$input = JFactory::getApplication()->input;
|
$input = JFactory::getApplication()->input;
|
||||||
$view = $input->getCmd('view', '');
|
$view = $input->getCmd('view', '');
|
||||||
if($view == '' && $input->getCmd('task', '') == '') {
|
|
||||||
|
if ($view == '' && $input->getCmd('task', '') == '')
|
||||||
|
{
|
||||||
$input->set('view', 'uploads');
|
$input->set('view', 'uploads');
|
||||||
}
|
}
|
||||||
|
|
||||||
$controller = JControllerLegacy::getInstance('jedchecker');
|
$controller = JControllerLegacy::getInstance('jedchecker');
|
||||||
$controller->execute($input->getCmd('task', ''));
|
$controller->execute($input->getCmd('task', ''));
|
||||||
$controller->redirect();
|
$controller->redirect();
|
Loading…
x
Reference in New Issue
Block a user