Otherwise we set the index to the /previous/ item, which doesn't go so
well. I don't know why I never noticed this before.
$/x;
$name = urldecode $name;
my $list;
$/x;
$name = urldecode $name;
my $list;
+ $item = TrivGal::Item->new($name);
if ($name =~ m#/$#) {
$list = \@d;
die "can't index a folder" if $indexp;
if ($name =~ m#/$#) {
$list = \@d;
die "can't index a folder" if $indexp;
- $item = TrivGal::Item->new($name);
$comment = $c;
push @$list, $item;
}
$comment = $c;
push @$list, $item;
}