$m->interp->apply_escapes("$SCRIPTURL/$path", "u") .
"?scale=$scale";
} else {
- my ($dir, $base, $ext) = TrivGal::split_path $thumb;
+ my ($dir, undef, $ext) = TrivGal::split_path $thumb;
my $ty = $TYPE{lc $ext} or die "unknown type `$ext'";
my $img = $me->{img};
die "can't index a folder" if $indexp;
} else {
$list = \@f;
- my ($dir, $base, $ext) = split_path $name;
+ my (undef, undef, $ext) = split_path $name;
die "unknown image type" unless $TYPE{lc $ext};
if ($indexp) {
die "two index images" if defined $ix;
closedir $d;
ENT: for my $e (sort @e) {
- my ($dir, $base, $ext) = split_path $e;
+ my (undef, undef, $ext) = split_path $e;
my $dotp = $e =~ /^\./;
my $st = stat "$path/$e";
my $list = undef;