CoreFiles by mySites.guru
helper.php28 lines, 653 bytes, from Joomla_1.7.2-Stable-Full_Package.zip
Raw History Compare with 1.7.1
md5
d2e856892a89603cbd9713cc5f62f64b
sha1
dcebd95db42281e6d1be3165961beba81ff123ef
sha256
5e0c580d9cff24b729994ff9344b8900958c4e6558582de80c15790bcbfe091c
<?php
/**
 * @version		$Id: helper.php 21913 2011-07-25 05:21:57Z infograf768 $
 * @package		Joomla.Site
 * @subpackage	mod_syndicate
 * @copyright	Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

// no direct access
defined('_JEXEC') or die;

class modSyndicateHelper
{
	static function getLink(&$params)
	{
		$document = JFactory::getDocument();

		foreach($document->_links as $link => $value)
		{
			$value = JArrayHelper::toString($value);
			if (strpos($value, 'application/'.$params->get('format').'+xml')) {
				return $link;
			}
		}

	}
}

The same content is in 2 releases, Joomla 1.7.1 to 1.7.2. See them all, or every version of this file.