CoreFiles by mySites.guru
templates.php25 lines, 755 bytes, from Joomla_2.5.3-Stable-Full_Package.zip
Raw History Compare with 2.5.2
md5
c564601fb12ecf007b8a77a4ce852794
sha1
c698621c0798d9e1f5099f4162159db9fd4bbff6
sha256
844a0d7ebb1d3c444eb498e851f0d8b165da95f6ff5f06b689a420ef409059c8
<?php
/**
 * @package		Joomla.Administrator
 * @subpackage	com_templates
 * @copyright	Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

// no direct access
defined('_JEXEC') or die;

// Access check.
if (!JFactory::getUser()->authorise('core.manage', 'com_templates')) {
	return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR'));
}

// Register helper
JLoader::register('TemplatesHelper', dirname(__FILE__) . '/helpers/templates.php');

// Include dependancies
jimport('joomla.application.component.controller');

$controller	= JController::getInstance('Templates');
$controller->execute(JRequest::getCmd('task'));
$controller->redirect();

The same content is in 6 releases, Joomla 2.5.1 to 2.5.6. See them all, or every version of this file.