Skip to content
This repository has been archived by the owner on Nov 26, 2017. It is now read-only.

Remove deprecated getFeedParser method from JFactory #1852

Merged
merged 1 commit into from Mar 19, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
23 changes: 0 additions & 23 deletions libraries/joomla/factory.php
Expand Up @@ -354,29 +354,6 @@ public static function getMailer()
return $copy; return $copy;
} }


/**
* Get a parsed XML Feed Source
*
* @param string $url Url for feed source.
* @param integer $cache_time Time to cache feed for (using internal cache mechanism).
*
* @return mixed SimplePie parsed object on success, false on failure.
*
* @since 11.1
* @deprecated 13.3 Use JSimplepieFactory::getFeedParser() instead.
*/
public static function getFeedParser($url, $cache_time = 0)
{
if (!class_exists('JSimplepieFactory'))
{
throw new BadMethodCallException('JSimplepieFactory not found');
}

JLog::add(__METHOD__ . ' is deprecated. Use JSimplepieFactory::getFeedParser() instead.', JLog::WARNING, 'deprecated');

return JSimplepieFactory::getFeedParser($url, $cache_time);
}

/** /**
* Reads a XML file. * Reads a XML file.
* *
Expand Down