CoreFiles by mySites.guru
mod_privacy_dashboard.php39 lines, 1,182 bytes, from Joomla_5.3.2-Stable-Full_Package.zip
Raw History Compare with 5.3.1
md5
7e4c4b7522b0595d55b5cd555047908f
sha1
0c40eaf34b62a65e1d3afb25d116a82557285ecb
sha256
c1713d2f51fbea65a9c50c698b8eeaf27cf349401b3370f27cda36938a729e69
<?php

/**
 * @package     Joomla.Administrator
 * @subpackage  mod_privacy_dashboard
 *
 * @copyright   (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

\defined('_JEXEC') or die;

use Joomla\CMS\Helper\ModuleHelper;
use Joomla\CMS\Layout\LayoutHelper;
use Joomla\Module\PrivacyDashboard\Administrator\Helper\PrivacyDashboardHelper;

// Only super user can view this data
if (!$app->getIdentity()->authorise('core.admin')) {
    return;
}

// Boot component to ensure HTML helpers are loaded
$app->bootComponent('com_privacy');

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

$list = PrivacyDashboardHelper::getData();

if (\count($list)) {
    require ModuleHelper::getLayoutPath('mod_privacy_dashboard', $params->get('layout', 'default'));
} else {
    echo LayoutHelper::render('joomla.content.emptystate_module', [
            'textPrefix' => 'COM_PRIVACY_REQUESTS',
            'icon'       => 'icon-lock',
        ]);
}

The same content is in 75 releases, Joomla 5.0.0-rc to 6.0.0-alpha3. See them all, or every version of this file.