X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=general%2Fentriescache;h=3156c57243be0644c6982145bce460c59c3eee86;hb=50a6bf7b20a02807adb4bdba2e57515b25abe9d5;hp=7a0f17bab15d36b2eb1e45600474b428a7686973;hpb=93245008113e831d1db6fa8a856c0e177315adaa;p=matthijs%2Fupstream%2Fblosxom-plugins.git diff --git a/general/entriescache b/general/entriescache index 7a0f17b..3156c57 100644 --- a/general/entriescache +++ b/general/entriescache @@ -176,6 +176,7 @@ sub entries { or !-f "$blosxom::static_dir/$1/index." . $blosxom::static_flavours[0] # or stat("$blosxom::static_dir/$1/index." . $blosxom::static_flavours[0])->mtime < stat($File::Find::name)->mtime # Trying to fix for static mode +# Barijaona's note : you may uncomment the above instruction if you want to be able to fix typos in static rendering or stat("$blosxom::static_dir/$1/index." . $blosxom::static_flavours[0])->mtime < $files{$File::Find::name} ) and $indexes{$1} = 1 @@ -259,6 +260,7 @@ sub extract_date { if (($line =~ /\r/) || ($new_story =~ /\r/)) { warn "Entries_Cache: File $file has non-UNIX line endings; cannot update metatags...\n"; + close FILE; return 0; } @@ -299,7 +301,7 @@ sub extract_date { close FILE; return 0; } else { - close File; + close FILE; return 0; } }