aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/poche/Poche.class.php
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2014-12-22 16:26:23 +0100
committerThomas Citharel <tcit@tcit.fr>2014-12-22 16:26:23 +0100
commit37cad52229ac61b13f69440243df54e0e2a4536f (patch)
treed505f62317ed7937bb1db0b98a95375b4f09d738 /inc/poche/Poche.class.php
parent9254b6cf460edec3a59e9ccc19873481a1d19c90 (diff)
downloadwallabag-37cad52229ac61b13f69440243df54e0e2a4536f.tar.gz
wallabag-37cad52229ac61b13f69440243df54e0e2a4536f.tar.zst
wallabag-37cad52229ac61b13f69440243df54e0e2a4536f.zip
don't call flattr if flattr is disabled
Diffstat (limited to 'inc/poche/Poche.class.php')
-rwxr-xr-xinc/poche/Poche.class.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php
index 27d6f4a6..a29cb327 100755
--- a/inc/poche/Poche.class.php
+++ b/inc/poche/Poche.class.php
@@ -405,9 +405,12 @@ class Poche
405 } 405 }
406 406
407 # flattr checking 407 # flattr checking
408 $flattr = new FlattrItem(); 408 $flattr = NULL;
409 $flattr->checkItem($entry['url'], $entry['id']); 409 if (FLATTR) {
410 410 $flattr = new FlattrItem();
411 $flattr->checkItem($entry['url'], $entry['id']);
412 }
413
411 # tags 414 # tags
412 $tags = $this->store->retrieveTagsByEntry($entry['id']); 415 $tags = $this->store->retrieveTagsByEntry($entry['id']);
413 416
@@ -812,4 +815,4 @@ class Poche
812 } 815 }
813 816
814 817
815} \ No newline at end of file 818}