Skip to content

Commit

Permalink
[joomla#30583] Deprecate SimplePie. Thanks Elin Waring.
Browse files Browse the repository at this point in the history
  • Loading branch information
elinw authored and dextercowley committed Apr 15, 2013
1 parent f2871e3 commit f7b1c78
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
1 change: 1 addition & 0 deletions installation/CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ $ -> Language fix or change

15-Apr-Mark Dexter
+ [#30298] Added note form field. Thanks Peter van Westen.
# [#30583] Deprecate SimplePie. Thanks Elin Waring.

15-Apr-2013 Jean-Marie Simonet
# [#30579] *TAGS: Tags field not displaying tags--Revert changes to the tags API. Thanks Elin
Expand Down
4 changes: 2 additions & 2 deletions libraries/joomla/factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ public static function getMailer()
* @return mixed SimplePie parsed object on success, false on failure.
*
* @since 11.1
* @deprecated 13.3 Use JSimplepieFactory::getFeedParser() instead.
* @deprecated 4.0 Use directly JFeedFactory or supply SimplePie instead. Mehod will be proxied to JFeedFactory beginning in 3.2
*/
public static function getFeedParser($url, $cache_time = 0)
{
Expand All @@ -351,7 +351,7 @@ public static function getFeedParser($url, $cache_time = 0)
throw new BadMethodCallException('JSimplepieFactory not found');
}

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

return JSimplepieFactory::getFeedParser($url, $cache_time);
}
Expand Down
8 changes: 7 additions & 1 deletion libraries/legacy/simplepie/factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* @package Joomla.Legacy
* @subpackage Simplepie
* @since 12.2
*
* @deprecated 4.0 Use JFeed or supply your own methods
*/
class JSimplepieFactory
{
Expand All @@ -31,10 +33,14 @@ class JSimplepieFactory
* @return mixed SimplePie parsed object on success, false on failure.
*
* @since 12.2
* @deprecated 12.3 Will be dropped without replacement.
* @deprecated 4.0 Use JFeedFactory($url) instead.
*
* @note In 3.2 will be proxied to JFeedFactory()
*/
public static function getFeedParser($url, $cache_time = 0)
{
JLog::add(__METHOD__ . ' is deprecated. Use JFeedFactory() or supply Simple Pie instead.', JLog::WARNING, 'deprecated');

$cache = JFactory::getCache('feed_parser', 'callback');

if ($cache_time > 0)
Expand Down
4 changes: 4 additions & 0 deletions libraries/simplepie/simplepie.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<?php
/**
* This file will be removed in Joomla! CMS version 3.2. Developers should either supply their own copy
* in their installation packages or switch to JFeed.
*/
/**
* SimplePie
*
Expand Down

0 comments on commit f7b1c78

Please sign in to comment.