Skip to content

Commit

Permalink
Throw a E_USER_DEPRECATED error on old cache method
Browse files Browse the repository at this point in the history
  • Loading branch information
rmccue committed Oct 13, 2012
1 parent 9aa3385 commit f00f19c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/SimplePie/Cache.php
Expand Up @@ -99,6 +99,7 @@ public static function get_handler($location, $filename, $extension)
*/ */
public function create($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); return self::get_handler($location, $filename, $extension);
} }


Expand Down

0 comments on commit f00f19c

Please sign in to comment.