From: Barijaona Ramaholimihaso Date: Thu, 13 Sep 2007 02:23:53 +0000 (+0000) Subject: Bugfix on closing file and clarified documentation X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=7c40547a1ac90d0dd1fd57e273fd88677534c8eb;hp=68040af8c0303fec24d9409a2990f5bede66bd72;p=matthijs%2Fupstream%2Fblosxom-plugins.git Bugfix on closing file and clarified documentation --- 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; } }