CoreFiles by mySites.guru
mod_feed.php36 lines, 873 bytes, from Joomla_2.5.21-Stable-Full_Package.zip
Raw History Compare with 2.5.20
md5
74dbf636f116a452bb46255a5eb1bab3
sha1
b44520bd283d5409179ef1df90e8bd6a4636c359
sha256
73cb30fffd1f7a7528b4e7a959c0745cdac71362141ee0d933bc050a16e76ee1
<?php
/**
 * @package		Joomla.Administrator
 * @copyright	Copyright (C) 2005 - 2014 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 11 releases, Joomla 2.5.18 to 2.5.28. See them all, or every version of this file.