CoreFiles by mySites.guru
menus.php32 lines, 870 bytes, from Joomla_3.9.6-Stable-Full_Package.zip
Raw History Compare with 3.9.5
md5
96b5ad139b770aeee58147803c6fd0c2
sha1
aca84da3c95ab62269e580195221d3010102b545
sha256
d59261b0c6afd61750df49b15d919634ef6e5002e186204c1a8e8c92573be332
<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_menus
 *
 * @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;

// Load the required admin language files
$lang   = JFactory::getLanguage();
$app    = JFactory::getApplication();

if ($app->input->get('view') === 'items' && $app->input->get('layout') === 'modal')
{
	if (!JFactory::getUser()->authorise('core.create', 'com_menus'))
	{
		$app->enqueueMessage(JText::_('JERROR_ALERTNOAUTHOR'), 'warning');

		return;
	}
}

$lang->load('joomla', JPATH_ADMINISTRATOR);
$lang->load('com_menus', JPATH_ADMINISTRATOR);

// Trigger the controller
$controller = JControllerLegacy::getInstance('Menus');
$controller->execute($app->input->get('task'));
$controller->redirect();

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