CoreFiles by mySites.guru
helper.php35 lines, 704 bytes, from Joomla_3.2.2-Stable-Full_Package.zip
Raw History Compare with 3.2.1
md5
2abd33db65facac247df27bfbd659642
sha1
fbd7a0a0e46a71a2f01c4b507a9ff772f684f6b3
sha256
8992ef02c58adb767cd2f74f979ca9293189074a70ca7fd4314786df21f7e1d4
<?php
/**
 * @package     Joomla.Site
 * @subpackage  mod_syndicate
 *
 * @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;

/**
 * Helper for mod_syndicate
 *
 * @package     Joomla.Site
 * @subpackage  mod_syndicate
 * @since       1.5
 */
class ModSyndicateHelper
{
	public 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 3.2.2 to 3.2.3. See them all, or every version of this file.