CoreFiles by mySites.guru
helper.php32 lines, 974 bytes, from Joomla_1.5.13-Stable-Full_Package.zip
Raw History Compare with 1.5.12
md5
d8365577ffbf23b016bfcba0e1a314d7
sha1
c38ed17cfa28a5d4d80e9c5cc3a6efe6e40a971c
sha256
21e5b59d2669542f1d07d2c6d4df8ac8ef69ad46291728c5ff8422a932327fd9
<?php
/**
* @version		$Id: helper.php 10381 2008-06-01 03:35:53Z pasamio $
* @package		Joomla
* @copyright	Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
* @license		GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/

/** ensure this file is being included by a parent file */
defined('_JEXEC') or die('Direct Access to this location is not allowed.');

class modSyndicateHelper
{
	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 12 releases, Joomla 1.5.4 to 1.5.15. See them all, or every version of this file.