Update fever_api.php to support Article class

The latest commit to tt-rss now has classes for various objects, including an Article class, which causes errors in the plugin. This update make the plugin functional again.
This commit is contained in:
Colin Dunn
2017-05-05 11:22:53 +10:00
committed by GitHub
parent c4c8660215
commit 0b1475d938

View File

@@ -558,7 +558,7 @@ class FeverAPI extends Handler {
{
$line_content = $this->my_sanitize($line["content"], $line["link"]);
if (ADD_ATTACHED_FILES){
$enclosures = get_article_enclosures($line["id"]);
$enclosures = Article::get_article_enclosures($line["id"]);
if (count($enclosures) > 0) {
$line_content .= '<ul type="lower-greek">';
foreach ($enclosures as $enclosure) {