diff options
author | nashe <thomas@chauchefoin.fr> | 2017-05-28 13:53:51 +0200 |
---|---|---|
committer | nashe <thomas@chauchefoin.fr> | 2017-05-28 13:53:51 +0200 |
commit | cec1a3d21fa822d4065492b217d997a8b1155d28 (patch) | |
tree | b46b6f156600d7eb5bc0cc1faa72eeb49e2a010c | |
parent | d2bb29ea95842059f9ae4dfe841d143ddf779258 (diff) | |
download | planet-cec1a3d21fa822d4065492b217d997a8b1155d28.tar planet-cec1a3d21fa822d4065492b217d997a8b1155d28.tar.gz planet-cec1a3d21fa822d4065492b217d997a8b1155d28.tar.bz2 planet-cec1a3d21fa822d4065492b217d997a8b1155d28.tar.xz planet-cec1a3d21fa822d4065492b217d997a8b1155d28.zip |
Fix minor errors found with debug mode on
-rw-r--r-- | app/classes/PlanetItem.php | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/app/classes/PlanetItem.php b/app/classes/PlanetItem.php index 039d0ca..7d55781 100644 --- a/app/classes/PlanetItem.php +++ b/app/classes/PlanetItem.php @@ -4,14 +4,19 @@ * Planet item */ -class PlanetItem +class PlanetItem extends SimplePie_Item { public function __construct($feed, $data) { - parent::SimplePie_Item($feed, $data); + parent::__construct($feed, $data); } - public function compare($item1, $item2) + /** + * @param PlanetItem $item1 + * @param PlanetItem $item2 + * @return int + */ + public static function compare($item1, $item2) { $item1_date = $item1->get_date('U'); $item2_date = $item2->get_date('U'); |