@copyright Copyright (C) 2015. All Rights Reserved @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html A sermon distributor that links to Dropbox. /-----------------------------------------------------------------------------------------------------------------------------*/ // No direct access to this file defined('_JEXEC') or die('Restricted access'); // Set the component css/js $document = JFactory::getDocument(); $document->addStyleSheet('components/com_sermondistributor/assets/css/site.css'); $document->addScript('components/com_sermondistributor/assets/js/site.js'); // Require helper files JLoader::register('SermondistributorHelper', dirname(__FILE__) . '/helpers/sermondistributor.php'); JLoader::register('SermondistributorHelperRoute', dirname(__FILE__) . '/helpers/route.php'); // Triger the Global Site Event SermondistributorHelper::globalEvent($document); // import joomla controller library jimport('joomla.application.component.controller'); // Get an instance of the controller prefixed by Sermondistributor $controller = JControllerLegacy::getInstance('Sermondistributor'); // Perform the request task $controller->execute(JRequest::getCmd('task')); // Redirect if set by the controller $controller->redirect();