CoreFiles by mySites.guru
style.php46 lines, 1,064 bytes, from Joomla_1.6.0-Stable-Full_Package.zip
Raw History Compare with 1.5.26
md5
ea208724daab10ef953530182ac4284b
sha1
b4ea87cd1e8069b6754d80e5955e6e7236ce5fb6
sha256
d34ae87368d00db934ed808195d6d83dfa259b660530a52197c1de1e73c07f6c
<?php
/**
 * @version		$Id: style.php 20196 2011-01-09 02:40:25Z ian $
 * @copyright	Copyright (C) 2005 - 2011 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;

jimport('joomla.application.component.controllerform');

/**
 * Template style controller class.
 *
 * @package		Joomla.Administrator
 * @subpackage	com_templates
 * @since		1.6
 */
class TemplatesControllerStyle extends JControllerForm
{
	/**
	 * @var		string	The prefix to use with controller messages.
	 * @since	1.6
	 */
	protected $text_prefix = 'COM_TEMPLATES_STYLE';

	/**
	 * Proxy for execute.
	 *
	 * If the task is an action which modifies data, the component cache is cleared.
	 *
	 * @since	1.6
 	 */
	public function execute($task)
	{
		parent::execute($task);

		// Clear the component's cache
		if (!in_array($task, array('display', 'edit', 'cancel'))) {
			$cache = JFactory::getCache();
			$cache->clean('com_templates');
			$cache->clean('_system');
		}
	}
}

The same content is in 2 releases, Joomla 1.6.0 to 1.6.1. See them all, or every version of this file.