33
0
mirror of https://github.com/joomla-extensions/patchtester.git synced 2025-01-23 23:28:24 +00:00

26 lines
682 B
PHP
Raw Normal View History

2011-10-11 09:02:57 -04:00
<?php
/**
2012-06-12 13:42:45 -05:00
* @package PatchTester
* @copyright Copyright (C) 2011 Ian MacLennan, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
2011-10-11 09:02:57 -04:00
*/
// no direct access
defined('_JEXEC') or die;
// Access check.
2012-06-12 13:42:45 -05:00
if (!JFactory::getUser()->authorise('core.manage', 'com_patchtester'))
{
2011-10-11 09:02:57 -04:00
return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR'));
}
// Include dependencies
2012-09-08 20:53:44 -05:00
//jimport('joomla.application.component.controller');
2011-10-11 09:02:57 -04:00
2012-09-08 20:53:44 -05:00
JLoader::registerPrefix('Pt', __DIR__.'/helpers');
$controller = JControllerLegacy::getInstance('PatchTester');
2011-10-11 09:02:57 -04:00
$controller->execute(JRequest::getCmd('task'));
$controller->redirect();