]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
don't call flattr if flattr is disabled 975/head
authorThomas Citharel <tcit@tcit.fr>
Mon, 22 Dec 2014 15:26:23 +0000 (16:26 +0100)
committerThomas Citharel <tcit@tcit.fr>
Mon, 22 Dec 2014 15:26:23 +0000 (16:26 +0100)
inc/poche/Poche.class.php

index 27d6f4a65e1ca22079a700d8dc2cfcdde851e582..a29cb327c18d6d27c48f84b2f05b9195ee7ab892 100755 (executable)
@@ -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
     }
 
 
-}
\ No newline at end of file
+}