CoreFiles by mySites.guru
mod_random_image.php29 lines, 813 bytes, from Joomla_3.4.0-alpha-Alpha-Full_Package.zip
Raw History Compare with 3.3.6
md5
2966f32eb856b91e2b7b6981817c93d9
sha1
fe1b502de944e4180a5595fbe236024d58d2cc12
sha256
8f068527ed5c38c6a0f79349405b3d7c24f9805fa467080ca33ff735c0e17548
<?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'));

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