]> git.wh0rd.org - tt-rss.git/blobdiff - classes/api.php
move the following to Article:
[tt-rss.git] / classes / api.php
index 2f1a563c03c5d8d47d21fab69fb0ea0fa5debb0a..65bca190d8ab49c8d263614c3fbf006b28543d66 100644 (file)
@@ -347,7 +347,7 @@ class API extends Handler {
 
                                while ($line = $this->dbh->fetch_assoc($result)) {
 
-                                       $attachments = get_article_enclosures($line['id']);
+                                       $attachments = Article::get_article_enclosures($line['id']);
 
                                        $article = array(
                                                "id" => $line["id"],
@@ -769,7 +769,7 @@ class API extends Handler {
                                        );
 
                                        if ($include_attachments)
-                                               $headline_row['attachments'] = get_article_enclosures(
+                                               $headline_row['attachments'] = Article::get_article_enclosures(
                                                        $line['id']);
 
                                        if ($show_excerpt)