X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fupstream%2Fblosxom-plugins.git;a=blobdiff_plain;f=barijaona%2Fstatic_file;h=6f75b1def7c400a3b2c9092ef84c27c1bc544dcb;hp=77397d6875bb912f475e7865342d874105b30b5a;hb=HEAD;hpb=46789e9d4454bb87a7e00477fba842b40b933db9 diff --git a/barijaona/static_file b/barijaona/static_file index 77397d6..6f75b1d 100644 --- a/barijaona/static_file +++ b/barijaona/static_file @@ -25,7 +25,7 @@ use vars qw( @exclude_extensions_dynamic @exclude_extensions_static $default_typ # Files whose filename extension is in the following list # will be ignored in static rendering -@exclude_extensions_static = qw(txt txt_) unless scalar(@exclude_extensions_dynamic); +@exclude_extensions_static = qw(txt txt_) unless scalar(@exclude_extensions_static); # This is the MIME type that will be used if nothing else # can be found. If your server contains mostly text or HTML @@ -99,7 +99,7 @@ sub end { && (-d $File::Find::name) ) { mkpath ("$blosxom::static_dir$1$2$3");} # is it a file to be updated ? - elsif ( ! grep(/$3/, @exclude_extensions_static) ) { + elsif ( ! grep(/^$3$/, @exclude_extensions_static) ) { my @static = stat( "$blosxom::static_dir$1$2$3" ); my @data = stat( $File::Find::name ); ( ( ! -e "$blosxom::static_dir$1$2$3" ) || @@ -156,15 +156,15 @@ Version number is the date on which this version of the plug-in was created. =head1 AUTHOR -Barijaona Ramaholimihaso +Barijaona Ramaholimihaso Original idea by Raffi Krikorian , http://www.bitwaste.com/, author of the binary plugin. =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/plugins/ =head1 NOTES @@ -172,6 +172,10 @@ If you are using this plugin in Blosxom's dynamic mode, you might consider creat It is recommanded, for performance optimization, to put a number in front of the name of this plugin, for instance to name it B<00static_file>, so that it loads among the first. +=head1 BUGS + +None known; please send bug reports and feedback to the Blosxom development mailing list . + =head1 LICENSE static_file Blosxom plugin