CoreFiles by mySites.guru
modules.php24 lines, 749 bytes, from Joomla_3.9.6-Stable-Full_Package.zip
Raw History Compare with 3.9.5
md5
1078190d2b1acaef751f6a9a01d82aeb
sha1
6803f92f3862f5d3a452de4e69148869b7042174
sha256
cafe9e893c2cda8fdc0a5054ba2fd1c99cadbfebb98b7c31cd148ca23c9008c8
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_modules
 *
 * @copyright   Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;
JHtml::_('behavior.tabstate');

$user  = JFactory::getUser();
$input = JFactory::getApplication()->input;

if (($input->get('layout') !== 'modal' && $input->get('view') !== 'modules')
	&& !$user->authorise('core.manage', 'com_modules'))
{
	throw new JAccessExceptionNotallowed(JText::_('JERROR_ALERTNOAUTHOR'), 403);
}

$controller = JControllerLegacy::getInstance('Modules');
$controller->execute(JFactory::getApplication()->input->get('task'));
$controller->redirect();

The same content is in 26 releases, Joomla 3.9.2-rc to 3.9.14. See them all, or every version of this file.