CoreFiles by mySites.guru
controller.php41 lines, 1,070 bytes, from Joomla_3.5.0-Stable-Full_Package.zip
Raw History Compare with 3.4.8
md5
c029fe706bbf9dc35701252e3c108c94
sha1
773d1356cc69b764bcfbd2b3307bfe2bdfef0847
sha256
da9be13f5b2b58d0f74ab394ef142658d71e09bfe9f7a27542e8b3c4316eb0b5
<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_modules
 *
 * @copyright   Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

/**
 * Modules manager master display controller.
 *
 * @since  3.5
 */
class ModulesController extends JControllerLegacy
{
/**
 * Constructor.
 *
 * @param   array  $config  An optional associative array of configuration settings.
 * Recognized key values include 'name', 'default_task', 'model_path', and
 * 'view_path' (this list is not meant to be comprehensive).
 *
 * @since   3.5
 */
	public function __construct($config = array())
	{
		$this->input = JFactory::getApplication()->input;

		// Modules frontpage Editor Module proxying:
		if ($this->input->get('view') === 'modules' && $this->input->get('layout') === 'modal')
		{
			JHtml::_('stylesheet', 'system/adminlist.css', array(), true);
			$config['base_path'] = JPATH_COMPONENT_ADMINISTRATOR;
		}

		parent::__construct($config);
	}
}

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