CoreFiles by mySites.guru
mod_status.php36 lines, 1,090 bytes, from Joomla_4.0.0-alpha3-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha2
md5
6ccfe4620d235fc49f1797049f7f6c6b
sha1
9e7ca1de7d2f704327afb38f8abdd37285541a8f
sha256
04bddc94995e1d23cd3885c2d90beb481ae11501949a73a04d65cd989675f1c7
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  mod_status
 *
 * @copyright   Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

use Joomla\CMS\Helper\ModuleHelper;
use Joomla\CMS\Factory;

$user     = Factory::getUser();
$app      = Factory::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
	$app->enqueueMessage($e->getMessage(), 'error');
}

// Load the com_postinstall language file
Factory::getLanguage()->load('com_postinstall', JPATH_ADMINISTRATOR, 'en-GB', true);

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

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