Permalink
Browse files

Throw a E_USER_DEPRECATED error on old cache method

  • Loading branch information...
1 parent 9aa3385 commit f00f19cf7e63ada2177d1fb363851a32f9e0b8f6 @rmccue rmccue committed Oct 11, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 library/SimplePie/Cache.php
View
1 library/SimplePie/Cache.php
@@ -99,6 +99,7 @@ public static function get_handler($location, $filename, $extension)
*/
public function create($location, $filename, $extension)
{
+ trigger_error('Cache::create() has been replaced with Cache::get_handler(). Switch to the registry system to use this.', E_USER_DEPRECATED);
return self::get_handler($location, $filename, $extension);
}

0 comments on commit f00f19c

Please sign in to comment.