diff options
author | Thomas Citharel <thomas.citharet@gmail.com> | 2013-09-10 18:23:56 +0200 |
---|---|---|
committer | Thomas Citharel <thomas.citharet@gmail.com> | 2013-09-10 18:23:56 +0200 |
commit | 964481d023676bee964141a1d14f638995ac8d30 (patch) | |
tree | 3875e93c7c92da7a98d0d8f867d10c404c789805 /inc/poche | |
parent | af1d2792263d45c5ffea2e5485dd81bf59b7bded (diff) | |
download | wallabag-964481d023676bee964141a1d14f638995ac8d30.tar.gz wallabag-964481d023676bee964141a1d14f638995ac8d30.tar.zst wallabag-964481d023676bee964141a1d14f638995ac8d30.zip |
Fixed bugs, added a flattr button and an option
There's a button and an option in define.inc.php to show the button or
not.
Diffstat (limited to 'inc/poche')
-rw-r--r-- | inc/poche/Poche.class.php | 2 | ||||
-rw-r--r-- | inc/poche/define.inc.php | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index 8b24e5cd..b0efe69a 100644 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php | |||
@@ -602,7 +602,7 @@ class FlattrItem{ | |||
602 | 602 | ||
603 | private function cacheflattrfile($urltoflattr){ | 603 | private function cacheflattrfile($urltoflattr){ |
604 | if (!is_dir('cache/flattr')){ | 604 | if (!is_dir('cache/flattr')){ |
605 | mkdir('./cache/flattr', 0700); | 605 | mkdir('./cache/flattr', 0777); |
606 | } | 606 | } |
607 | // if a cache flattr file for this url already exists and it's been less than one day than it have been updated, see in /cache | 607 | // if a cache flattr file for this url already exists and it's been less than one day than it have been updated, see in /cache |
608 | if ((!file_exists("cache/flattr/".base64_encode($urltoflattr).".cache")) || (time() - filemtime("cache/flattr/".base64_encode($urltoflattr).".cache") > 86400)) | 608 | if ((!file_exists("cache/flattr/".base64_encode($urltoflattr).".cache")) || (time() - filemtime("cache/flattr/".base64_encode($urltoflattr).".cache") > 86400)) |
diff --git a/inc/poche/define.inc.php b/inc/poche/define.inc.php index 3f667430..62777282 100644 --- a/inc/poche/define.inc.php +++ b/inc/poche/define.inc.php | |||
@@ -20,8 +20,9 @@ define ('DEBUG_POCHE', FALSE); | |||
20 | define ('DOWNLOAD_PICTURES', FALSE); | 20 | define ('DOWNLOAD_PICTURES', FALSE); |
21 | define ('SHARE_TWITTER', TRUE); | 21 | define ('SHARE_TWITTER', TRUE); |
22 | define ('SHARE_MAIL', TRUE); | 22 | define ('SHARE_MAIL', TRUE); |
23 | define ('SHARE_SHAARLI', FALSE); | 23 | define ('SHARE_SHAARLI', TRUE); |
24 | define ('SHAARLI_URL', 'http://myshaarliurl.com'); | 24 | define ('SHAARLI_URL', 'http://myshaarliurl.com'); |
25 | define ('FLATTR', TRUE); | ||
25 | define ('ABS_PATH', 'assets/'); | 26 | define ('ABS_PATH', 'assets/'); |
26 | define ('TPL', __DIR__ . '/../../tpl'); | 27 | define ('TPL', __DIR__ . '/../../tpl'); |
27 | define ('LOCALE', __DIR__ . '/../../locale'); | 28 | define ('LOCALE', __DIR__ . '/../../locale'); |