diff options
Diffstat (limited to 'classes/api.php')
-rwxr-xr-x | classes/api.php | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/classes/api.php b/classes/api.php index 6fb87d04f..339e9eef1 100755 --- a/classes/api.php +++ b/classes/api.php @@ -40,7 +40,7 @@ class API extends Handler { } function getVersion() { - $rv = array("version" => VERSION); + $rv = array("version" => get_version()); $this->wrap(self::STATUS_OK, $rv); } @@ -300,16 +300,6 @@ class API extends Handler { $num_updated = $sth->rowCount(); - if ($num_updated > 0 && $field == "unread") { - $sth = $this->pdo->prepare("SELECT DISTINCT feed_id FROM ttrss_user_entries - WHERE ref_id IN ($article_qmarks)"); - $sth->execute($article_ids); - - while ($line = $sth->fetch()) { - CCache::update($line["feed_id"], $_SESSION["uid"]); - } - } - $this->wrap(self::STATUS_OK, array("status" => "OK", "updated" => $num_updated)); |