# JFile not found

This commit is contained in:
Daniel Dimitrov 2013-11-05 20:22:50 +01:00
parent 4eb3543b01
commit 6792e66b07
2 changed files with 15 additions and 5 deletions

3
CHANGELOG Normal file
View File

@ -0,0 +1,3 @@
Changelog:
# JFile not found

View File

@ -1,7 +1,7 @@
<?php
/**
* @author Daniel Dimitrov - compojoom.com
* @date: 02.06.12
* @author Daniel Dimitrov - compojoom.com
* @date : 02.06.12
*
* @copyright Copyright (C) 2008 - 2012 compojoom.com . All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
@ -10,11 +10,18 @@
defined('_JEXEC') or die('Restricted access');
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;
$view = $input->getCmd('view','');
if($view == '' && $input->getCmd('task', '') == '') {
$view = $input->getCmd('view', '');
if ($view == '' && $input->getCmd('task', '') == '')
{
$input->set('view', 'uploads');
}
$controller = JControllerLegacy::getInstance('jedchecker');
$controller->execute($input->getCmd('task',''));
$controller->execute($input->getCmd('task', ''));
$controller->redirect();