CoreFiles by mySites.guru
mod_random_image.php28 lines, 812 bytes, from Joomla_3.3.2-Stable-Full_Package.zip
Raw History Compare with 3.3.1
md5
52b62bebe53f510bc2417def3130e22a
sha1
4d76cdb0e378bc806c57604981b8d2dfafc59652
sha256
89a7a3d91754c48925aea3e4169a6f215ef8c10d8959bd5cd67e3be72991fbbc
<?php
/**
 * @package     Joomla.Site
 * @subpackage  mod_random_image
 *
 * @copyright   Copyright (C) 2005 - 2014 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 13 releases, Joomla 3.2.2 to 3.3.6. See them all, or every version of this file.