CoreFiles by mySites.guru
mod_random_image.php28 lines, 814 bytes, from Joomla_3.4.4-Stable-Full_Package.zip
Raw History Compare with 3.4.3
md5
c9a0b1f2f6beaa9e40f80d58fe373b03
sha1
e7aa4c08028ee53d7865a52fc45e207efceab66e
sha256
1d4a0216bd0b287de61a13c5ece66f49b5df8548b554e5cecc0feb7d8970ce98
<?php
/**
 * @package     Joomla.Site
 * @subpackage  mod_random_image
 *
 * @copyright   Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

// Include the syndicate functions only once
require_once __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'));
require JModuleHelper::getLayoutPath('mod_random_image', $params->get('layout', 'default'));

The same content is in 9 releases, Joomla 3.4.4-rc to 3.5.0-beta. See them all, or every version of this file.