CoreFiles by mySites.guru
mod_feed.php36 lines, 873 bytes, from Joomla_2.5.13-Stable-Full_Package.zip
Raw History Compare with 2.5.11
md5
b7284414f2957a7fdcba0128fe138266
sha1
c33534fd8650751976181caa0ae65a5d9407b436
sha256
90856e6e89e1ccd051557f22c31367c65f257a76045e57b9d2ed577be5530bbe
<?php
/**
 * @package		Joomla.Administrator
 * @copyright	Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

/** ensure this file is being included by a parent file */
defined('_JEXEC') or die;

// Include the syndicate functions only once
require_once dirname(__FILE__).'/helper.php';

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

//check if cache diretory is writable as cache files will be created for the feed
$cacheDir = JPATH_CACHE;
if (!is_writable($cacheDir))
{
	echo '<div>';
	echo JText::_('MOD_FEED_ERR_CACHE');
	echo '</div>';
	return;
}

//check if feed URL has been set
if (empty ($rssurl))
{
	echo '<div>';
	echo JText::_('MOD_FEED_ERR_NO_URL');
	echo '</div>';
	return;
}

require JModuleHelper::getLayoutPath('mod_feed');

The same content is in 8 releases, Joomla 2.5.9 to 2.5.17. See them all, or every version of this file.