X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=general%2Fentriescache;h=3156c57243be0644c6982145bce460c59c3eee86;hb=7c40547a1ac90d0dd1fd57e273fd88677534c8eb;hp=7a0f17bab15d36b2eb1e45600474b428a7686973;hpb=68040af8c0303fec24d9409a2990f5bede66bd72;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; } }