CoreFiles by mySites.guru
mod_related_items.php32 lines, 1,018 bytes, from Joomla_4.0.0-alpha2-Alpha-Full_Package.zip
Raw History Compare with 3.10.0-alpha9
md5
60d54a50a938ba506cc8c3dfae5f6f81
sha1
71167e29e813dae6834caef995b6a3dcb35bf053
sha256
507f42ba1d920c23ab04eb65e0ee39bbcf92cc207da903cf78e36f4706bfbe75
<?php
/**
 * @package     Joomla.Site
 * @subpackage  mod_related_items
 *
 * @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;

use Joomla\CMS\Helper\ModuleHelper;
use Joomla\Module\RelatedItems\Site\Helper\RelatedItemsHelper;

$cacheparams = new \stdClass;
$cacheparams->cachemode    = 'safeuri';
$cacheparams->class        = 'Joomla\Module\RelatedItems\Site\Helper\RelatedItemsHelper';
$cacheparams->method       = 'getList';
$cacheparams->methodparams = $params;
$cacheparams->modeparams   = array('id' => 'int', 'Itemid' => 'int');

$list = ModuleHelper::moduleCache($module, $params, $cacheparams);

if (!count($list))
{
	return;
}

$moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx'), ENT_COMPAT, 'UTF-8');
$showDate        = $params->get('showDate', 0);

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

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