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:
Thomas Citharel
2013-09-10 18:23:56 +02:00
parent af1d279226
commit 964481d023
5 changed files with 9 additions and 3 deletions

View File

@ -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))