aboutsummaryrefslogtreecommitdiff
path: root/plugin.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugin.php')
-rw-r--r--plugin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin.php b/plugin.php
index a487f65..48bbf67 100644
--- a/plugin.php
+++ b/plugin.php
@@ -143,7 +143,7 @@ class atom_feed extends RatatoeskrPlugin
if(!isset($article->title[$lang]))
throw new NotFoundError();
$comments = $article->get_comments($lang, True);
- usort($comments, function($a, $b) { return intcmp($a->get_timestamp(), $b->get_timestamp()); });
+ usort($comments, function($a, $b) { return $a->get_timestamp() <=> $b->get_timestamp(); });
$this->ste->vars["feed"]["title"] = "Comments for " . $article->title[$lang]->text . " - " . $this->config["title"];
$this->ste->vars["feed"]["alternate"] = "$baseurl/$lang/" . $article->urlname;