CoreFiles by mySites.guru
mod_status.php57 lines, 1,961 bytes, from Joomla_4.0.0-alpha10-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha9
md5
863f0c6a00191960358f53885d76ab5e
sha1
4576c57c787b4f9824e1738f211cc8cc74093701
sha256
d755d298e498ee5033d8ba646763e5072e39198c676189c5e8b0e9a04e300611
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  mod_status
 *
 * @copyright   Copyright (C) 2005 - 2019 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\Extension\ExtensionHelper;
use Joomla\CMS\Factory;
use Joomla\CMS\Helper\ModuleHelper;
use Joomla\CMS\Language\Multilanguage;
use Joomla\Database\DatabaseInterface;
use Joomla\Module\Multilangstatus\Administrator\Helper\MultilangstatusAdminHelper;

$db       = Factory::getContainer()->get(DatabaseInterface::class);
$user     = $app->getIdentity();
$sitename = htmlspecialchars($app->get('sitename', ''), ENT_QUOTES, 'UTF-8');

// Try to get the items from the post-installation model
try
{
	$messagesModel = $app->bootComponent('com_postinstall')->getMVCFactory()->createModel('Messages', 'Administrator', ['ignore_request' => true]);
	$messages      = $messagesModel->getItems();
}
catch (RuntimeException $e)
{
	$messages = [];

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

$joomlaFilesExtensionId = ExtensionHelper::getExtensionRecord('files_joomla')->extension_id;

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

$multilanguageStatusModuleOutput = '';

// Check if the multilangstatus module is present and enabled in the site
if (class_exists(MultilangstatusAdminHelper::class) && MultilangstatusAdminHelper::isEnabled($app, $db))
{
	// Publish and display the module
	MultilangstatusAdminHelper::publish($app, $db);

	if (Multilanguage::isEnabled($app, $db)) 
	{
		$module                          = ModuleHelper::getModule('mod_multilangstatus');
		$multilanguageStatusModuleOutput = ModuleHelper::renderModule($module);
	}
}

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

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