projects
/
matthijs
/
upstream
/
blosxom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move entries param('-all') check outside find.
[matthijs/upstream/blosxom.git]
/
blosxom.cgi
diff --git
a/blosxom.cgi
b/blosxom.cgi
index fef5750e3d07ba7370ab01fac21bac8a6190c795..dca7e01e75476342c15b5110993249d62c695b47 100755
(executable)
--- a/
blosxom.cgi
+++ b/
blosxom.cgi
@@
-550,6
+550,7
@@
sub load_template {
# Define default entries subroutine
$entries = sub {
my ( %files, %indexes, %others );
# Define default entries subroutine
$entries = sub {
my ( %files, %indexes, %others );
+ my $param_all = param('-all');
find(
sub {
my $d;
find(
sub {
my $d;
@@
-579,7
+580,7
@@
$entries = sub {
# static rendering bits
my $static_file
= "$static_dir/$1/index." . $static_flavours[0];
# static rendering bits
my $static_file
= "$static_dir/$1/index." . $static_flavours[0];
- if (
param('-all')
+ if (
$param_all
or !-f $static_file
or stat($static_file)->mtime < $mtime )
{
or !-f $static_file
or stat($static_file)->mtime < $mtime )
{