summaryrefslogtreecommitdiffstats
path: root/3rdparty/SimplePie/library/SimplePie/Registry.php
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/SimplePie/library/SimplePie/Registry.php')
-rwxr-xr-x3rdparty/SimplePie/library/SimplePie/Registry.php18
1 files changed, 17 insertions, 1 deletions
diff --git a/3rdparty/SimplePie/library/SimplePie/Registry.php b/3rdparty/SimplePie/library/SimplePie/Registry.php
index 4fcd53c7b..1072cdebb 100755
--- a/3rdparty/SimplePie/library/SimplePie/Registry.php
+++ b/3rdparty/SimplePie/library/SimplePie/Registry.php
@@ -33,7 +33,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*
* @package SimplePie
- * @version 1.3
+ * @version 1.3.1
* @copyright 2004-2012 Ryan Parman, Geoffrey Sneddon, Ryan McCue
* @author Ryan Parman
* @author Geoffrey Sneddon
@@ -203,6 +203,22 @@ class SimplePie_Registry
{
$class = $this->get_class($type);
+ if (in_array($class, $this->legacy))
+ {
+ switch ($type)
+ {
+ case 'Cache':
+ // For backwards compatibility with old non-static
+ // Cache::create() methods
+ if ($method === 'get_handler')
+ {
+ $result = @call_user_func_array(array($class, 'create'), $parameters);
+ return $result;
+ }
+ break;
+ }
+ }
+
$result = call_user_func_array(array($class, $method), $parameters);
return $result;
}