diff options
author | Andrew Dolgov <[email protected]> | 2017-05-04 14:38:45 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-05-04 14:38:45 +0300 |
commit | 7e5f8d9fb323dc5e47f545984c6f9b3d320a2912 (patch) | |
tree | e5b38d83ab67fa9a0dfa5ac3bb972a26ba91de65 /classes/api.php | |
parent | 4122da0290d7bdb85e94b3e4b509be3ee56c6356 (diff) |
move the following to Article:
+ static function format_article_enclosures($id, $always_display_enclosures,
+ static function format_article($id, $mark_as_read = true, $zoom_mode = false, $owner_uid = false) {
+ static function get_article_tags($id, $owner_uid = 0, $tag_cache = false) {
+ static function format_tags_string($tags) {
+ static function format_article_labels($labels) {
+ static function format_article_note($id, $note, $allow_edit = true) {
+ static function get_article_enclosures($id) {
Diffstat (limited to 'classes/api.php')
-rw-r--r-- | classes/api.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/api.php b/classes/api.php index 2f1a563c0..65bca190d 100644 --- a/classes/api.php +++ b/classes/api.php @@ -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) |