CoreFiles by mySites.guru
mod_feed.php36 lines, 873 bytes, from Joomla_2.5.2-Stable-Full_Package.zip
Raw History Compare with 2.5.1
md5
4a81337716b93171f86f56663b4ca47e
sha1
03bc4c33f4d4a023dce187eedbbac4a30d7da0df
sha256
bae542fe9eb3f2532a9950d4aeacf20c1e78b00c2941018d9e749dc706b5483d
<?php
/**
 * @package		Joomla.Administrator
 * @copyright	Copyright (C) 2005 - 2012 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 9 releases, Joomla 2.5.0 to 2.5.8. See them all, or every version of this file.