CoreFiles by mySites.guru
mod_privacy_dashboard.php36 lines, 1,147 bytes, from Joomla_4.0.0-alpha12-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha11
md5
8bc851d8a9340d9cbeed21c2420eaf73
sha1
da1f2988de100cf3785e9e98a867b52b0879df2e
sha256
befff129695d69c559c2bc5ca69501bb56f82dd11c387cce955492388d85e609
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  mod_privacy_dashboard
 *
 * @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\Factory;
use Joomla\CMS\Helper\ModuleHelper;
use Joomla\CMS\HTML\HTMLHelper;

// Only super user can view this data
if (!Factory::getUser()->authorise('core.admin'))
{
	return;
}

// Boot component to ensure HTML helpers are loaded
Factory::getApplication()->bootComponent('com_privacy');

// Load the privacy component language file.
$lang = Factory::getLanguage();
$lang->load('com_privacy', JPATH_ADMINISTRATOR, null, false, true)
	|| $lang->load('com_privacy', JPATH_ADMINISTRATOR . '/components/com_privacy', null, false, true);

HTMLHelper::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_privacy/helpers/html');

JLoader::register('ModPrivacyDashboardHelper', __DIR__ . '/helper.php');

$list = ModPrivacyDashboardHelper::getData();

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

The same content is in 2 releases, Joomla 4.0.0-alpha11 to 4.0.0-alpha12. See them all, or every version of this file.