mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-29 11:00:28 +00:00
Merge pull request #975 from wallabag/fixflattrcalls
don't call flattr if flattr is disabled
This commit is contained in:
commit
7a21c308be
1 changed files with 7 additions and 4 deletions
|
@ -405,9 +405,12 @@ class Poche
|
|||
}
|
||||
|
||||
# flattr checking
|
||||
$flattr = new FlattrItem();
|
||||
$flattr->checkItem($entry['url'], $entry['id']);
|
||||
|
||||
$flattr = NULL;
|
||||
if (FLATTR) {
|
||||
$flattr = new FlattrItem();
|
||||
$flattr->checkItem($entry['url'], $entry['id']);
|
||||
}
|
||||
|
||||
# tags
|
||||
$tags = $this->store->retrieveTagsByEntry($entry['id']);
|
||||
|
||||
|
@ -812,4 +815,4 @@ class Poche
|
|||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue