Bugfix on closing file and clarified documentation
[matthijs/upstream/blosxom-plugins.git] / general / entriescache
index 61bc45e3e18a992dd865eddfe93caa97bf832cf6..3156c57243be0644c6982145bce460c59c3eee86 100644 (file)
@@ -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;
                                }
                        }
@@ -476,16 +478,19 @@ Modified by Steve Schwarz
 based on original code by:
 Rael Dornfest  <rael@oreilly.com>, http://www.raelity.org/
 
+This plugin is now maintained by the Blosxom Sourceforge Team,
+<blosxom-devel@lists.sourceforge.net>.
+
 =head1 SEE ALSO
 
-Blosxom Home/Docs/Licensing: http://www.raelity.org/apps/blosxom/
+Blosxom Home/Docs/Licensing: http://blosxom.sourceforge.net/
 
-Blosxom Plugin Docs: http://www.raelity.org/apps/blosxom/plugin.shtml
+Blosxom Plugin Docs: http://blosxom.sourceforge.net/documentation/users/plugins.html
 
 =head1 BUGS
 
-Address bug reports and comments to the Blosxom mailing list 
-[http://www.yahoogroups.com/group/blosxom].
+None known; please send bug reports and feedback to the Blosxom
+development mailing list <blosxom-devel@lists.sourceforge.net>.
 
 =head1 LICENSE