CoreFiles by mySites.guru
helper.php28 lines, 656 bytes, from Joomla_1.6.6-Stable-Full_Package.zip
Raw History Compare with 1.6.5
md5
8065aa1d7e69bfc1149692c2a23ad3bf
sha1
6318b5e1ef522077a6c2d291db11cdb997d5c207
sha256
3424e543ad7a200d11c25d29b1bb2c89b213597c0e0d3ad2e7560eaf175c94c0
<?php
/**
 * @version		$Id: helper.php 20228 2011-01-10 00:52:54Z eddieajau $
 * @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)
		{
			if (strpos($link, 'application/'.$params->get('format').'+xml')) {
				preg_match("#href=\"(.*?)\"#s", $link, $matches);
				return $matches[1];
			}
		}

	}
}

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