~mdw
/
tgal
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mason/.perl-lib/TrivGal.pm: Explicitly ignore values from `split_path'.
[tgal]
/
mason
/
.perl-lib
/
TrivGal.pm
diff --git
a/mason/.perl-lib/TrivGal.pm
b/mason/.perl-lib/TrivGal.pm
index
2d65be5
..
96f66f1
100644
(file)
--- a/
mason/.perl-lib/TrivGal.pm
+++ b/
mason/.perl-lib/TrivGal.pm
@@
-257,7
+257,7
@@
package TrivGal::Image {
$m->interp->apply_escapes("$SCRIPTURL/$path", "u") .
"?scale=$scale";
} else {
$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};
my $ty = $TYPE{lc $ext} or die "unknown type `$ext'";
my $img = $me->{img};
@@
-344,7
+344,7
@@
sub listdir ($) {
die "can't index a folder" if $indexp;
} else {
$list = \@f;
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;
die "unknown image type" unless $TYPE{lc $ext};
if ($indexp) {
die "two index images" if defined $ix;
@@
-366,7
+366,7
@@
sub listdir ($) {
closedir $d;
ENT: for my $e (sort @e) {
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;
my $dotp = $e =~ /^\./;
my $st = stat "$path/$e";
my $list = undef;