CoreFiles by mySites.guru
menus.php31 lines, 844 bytes, from Joomla_3.10.0-alpha5-Alpha-Full_Package.zip
Raw History Compare with 3.10.0-alpha4
md5
96563d840f67dee864cd928750c22766
sha1
a7c36d07fe7e398ed046b49b1cccca483fc7a3e2
sha256
2a30feb6f2d8bbd149155d39e90a73e6ef8c483bb1be48b81af57abb5aafb729
<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_menus
 *
 * @copyright   (C) 2016 Open Source Matters, Inc. <https://www.joomla.org>
 * @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('com_menus', JPATH_ADMINISTRATOR);

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

The same content is in 8 releases, Joomla 3.10.0-alpha4 to 3.10.0-rc2. See them all, or every version of this file.