CoreFiles by mySites.guru
mod_random_image.php29 lines, 870 bytes, from Joomla_3.10.7-Stable-Full_Package.zip
Raw History Compare with 3.10.6
md5
e1c7214f3f43d62c280f991457b770a1
sha1
65c09536beef383f46ecde87d1b378ef999f3ac9
sha256
3199c93fd718f353eca63fe5c4b9c3b555d604b6511b9ad0b854b690029210e5
<?php
/**
 * @package     Joomla.Site
 * @subpackage  mod_random_image
 *
 * @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;

// Include the random image functions only once
JLoader::register('ModRandomImageHelper', __DIR__ . '/helper.php');

$link   = $params->get('link');
$folder = ModRandomImageHelper::getFolder($params);
$images = ModRandomImageHelper::getImages($params, $folder);

if (!count($images))
{
	echo JText::_('MOD_RANDOM_IMAGE_NO_IMAGES');

	return;
}

$image           = ModRandomImageHelper::getRandomImage($params, $images);
$moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx', ''), ENT_COMPAT, 'UTF-8');

require JModuleHelper::getLayoutPath('mod_random_image', $params->get('layout', 'default'));

The same content is in 13 releases, Joomla 3.10.6-rc1 to 3.10.12. See them all, or every version of this file.