mirror of
https://github.com/joomla-extensions/patchtester.git
synced 2024-12-23 11:29:00 +00:00
24 lines
622 B
PHP
24 lines
622 B
PHP
<?php
|
|
/**
|
|
* @package PatchTester
|
|
* @copyright Copyright (C) 2011 Ian MacLennan, Inc. All rights reserved.
|
|
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
*/
|
|
|
|
|
|
// no direct access
|
|
defined('_JEXEC') or die;
|
|
|
|
// Access check.
|
|
if (!JFactory::getUser()->authorise('core.manage', 'com_patchtester'))
|
|
{
|
|
return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR'));
|
|
}
|
|
|
|
// Include dependencies
|
|
jimport('joomla.application.component.controller');
|
|
|
|
$controller = JController::getInstance('PatchTester');
|
|
$controller->execute(JRequest::getCmd('task'));
|
|
$controller->redirect();
|