CoreFiles by mySites.guru
view.html.php49 lines, 1,123 bytes, from Joomla_3.0.3-Stable-Full_Package.zip
Raw History Compare with 3.0.2
md5
1d740dcfee95fed0d80583fc32143454
sha1
51a5b44dc2726bb8aacea347ecafe5a5c3942fbf
sha256
8c1753a954d23eae5fb97cd3b02339b38d019f89a104174bc137c9b358dd86dc
<?php
/**
 * @package    Joomla.Installation
 *
 * @copyright  Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

/**
 * The HTML Joomla Core Default Language View
 *
 * @package  Joomla.Installation
 * @since    3.0
 */
class InstallationViewDefaultlanguage extends JViewLegacy
{
	/**
	 * @var object item list of languages installed in the administrator
	 */
	public $items;

	/**
	 * Display the view
	 *
	 * @param   string  $tpl  name of the template to be loaded.
	 *
	 * @return  mixed  A string if successful, otherwise a Error object.
	 */
	public function display($tpl = null)
	{
		$items = new stdClass;
		$items->administrator	= $this->get('InstalledlangsAdministrator');
		$items->frontend		= $this->get('InstalledlangsFrontend');

		// Check for errors.
		if (count($errors = $this->get('Errors')))
		{
			$app = JFactory::getApplication();
			$app->enqueueMessage(implode("\n", $errors), 'error');
			return false;
		}

		$this->items = $items;

		parent::display($tpl);
	}
}

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