CoreFiles by mySites.guru
mod_related_items.php31 lines, 888 bytes, from Joomla_4.3.4-Stable-Full_Package.zip
Raw History Compare with 4.3.3
md5
6421cf802cb91cfdb8b8bd5834921026
sha1
ea3bc2efff729d52a44958601bba51457ede4f36
sha256
e6b7e92400f493f6be0ef61e6cf1bc458a1b483fca7ed0db1c2123594dfe7a4b
<?php

/**
 * @package     Joomla.Site
 * @subpackage  mod_related_items
 *
 * @copyright   (C) 2005 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\Module\RelatedItems\Site\Helper\RelatedItemsHelper;

$cacheparams               = new \stdClass();
$cacheparams->cachemode    = 'safeuri';
$cacheparams->class        = RelatedItemsHelper::class;
$cacheparams->method       = 'getList';
$cacheparams->methodparams = $params;
$cacheparams->modeparams   = ['id' => 'int', 'Itemid' => 'int'];

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

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

$showDate = $params->get('showDate', 0);

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

The same content is in 22 releases, Joomla 4.2.7-rc1 to 4.3.4. See them all, or every version of this file.