forked from wallabag/wallabag
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.
This commit is contained in:
@ -602,7 +602,7 @@ class FlattrItem{
|
||||
|
||||
private function cacheflattrfile($urltoflattr){
|
||||
if (!is_dir('cache/flattr')){
|
||||
mkdir('./cache/flattr', 0700);
|
||||
mkdir('./cache/flattr', 0777);
|
||||
}
|
||||
// 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
|
||||
if ((!file_exists("cache/flattr/".base64_encode($urltoflattr).".cache")) || (time() - filemtime("cache/flattr/".base64_encode($urltoflattr).".cache") > 86400))
|
||||
|
||||
@ -20,8 +20,9 @@ define ('DEBUG_POCHE', FALSE);
|
||||
define ('DOWNLOAD_PICTURES', FALSE);
|
||||
define ('SHARE_TWITTER', TRUE);
|
||||
define ('SHARE_MAIL', TRUE);
|
||||
define ('SHARE_SHAARLI', FALSE);
|
||||
define ('SHARE_SHAARLI', TRUE);
|
||||
define ('SHAARLI_URL', 'http://myshaarliurl.com');
|
||||
define ('FLATTR', TRUE);
|
||||
define ('ABS_PATH', 'assets/');
|
||||
define ('TPL', __DIR__ . '/../../tpl');
|
||||
define ('LOCALE', __DIR__ . '/../../locale');
|
||||
|
||||
Reference in New Issue
Block a user