CoreFiles by mySites.guru
mod_status.php34 lines, 1,074 bytes, from Joomla_4.0.0-alpha2-Alpha-Full_Package.zip
Raw History Compare with 3.10.0-alpha9
md5
7bb0b8631b2ac8fa3e64f964973c79bc
sha1
c4c4d372334c12a78fa1046a2ccea788d4d6f05a
sha256
3e39fa1faea357238564cb061b44890dabe77de16c214c2ac0820aed797c91fb
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  mod_status
 *
 * @copyright   Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

$user     = JFactory::getUser();
$lang     = JFactory::getLanguage();
$app      = JFactory::getApplication();
$sitename = htmlspecialchars($app->get('sitename', ''), ENT_QUOTES, 'UTF-8');

// Try to get the items from the post-installation model
try
{
	$messagesModel = new \Joomla\Component\Postinstall\Administrator\Model\MessagesModel(['ignore_request' => true]);
	$messages      = $messagesModel->getItems();
}
catch (RuntimeException $e)
{
	$messages = [];

	// Still render the error message from the Exception object
	JFactory::getApplication()->enqueueMessage($e->getMessage(), 'error');
}

// Load the com_postinstall language file
$lang->load('com_postinstall', JPATH_ADMINISTRATOR, 'en-GB', true);

require JModuleHelper::getLayoutPath('mod_status', $params->get('layout', 'default'));

No other release has this exact content. See every version of this file.