CoreFiles by mySites.guru
content.php39 lines, 1,066 bytes, from Joomla_3.4.7-Stable-Full_Package.zip
Raw History Compare with 3.4.6
md5
c6bb17ad30d5fb6b9a5732578b561be1
sha1
880caf11c97f7a1fe66a6c17707111f8ed93aad1
sha256
2da67f73edbf42b5ad796067071f274152b1a68e01525c006288e0fb70ec9867
<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_content
 *
 * @copyright   Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

require_once JPATH_COMPONENT . '/helpers/route.php';
require_once JPATH_COMPONENT . '/helpers/query.php';

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

if ($input->get('view') === 'article' && $input->get('layout') === 'pagebreak')
{
	if (!$user->authorise('core.edit', 'com_content'))
	{
		JFactory::getApplication()->enqueueMessage(JText::_('JERROR_ALERTNOAUTHOR'), 'warning');

		return;
	}
}
elseif ($input->get('view') === 'articles' && $input->get('layout') === 'modal')
{
	if (!$user->authorise('core.edit', 'com_content'))
	{
		JFactory::getApplication()->enqueueMessage(JText::_('JERROR_ALERTNOAUTHOR'), 'warning');

		return;
	}
}

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

The same content is in 6 releases, Joomla 3.4.5 to 3.5.0-beta. See them all, or every version of this file.