require Sesse::pr0n::Config_local;
};
- $VERSION = "v3.02";
+ $VERSION = "v3.20";
@ISA = qw(Exporter);
@EXPORT = qw(&error &dberror);
%EXPORT_TAGS = qw();
}
sub get_cache_location {
- my ($r, $id, $width, $height) = @_;
+ my ($id, $width, $height) = @_;
my $dir = POSIX::floor($id / 256);
return $Sesse::pr0n::Config::image_base . "cache/$dir/$id-$width-$height-nobox.jpg";
}
sub get_infobox_cache_location {
- my ($r, $id, $width, $height, $dpr) = @_;
+ my ($id, $width, $height, $dpr) = @_;
my $dir = POSIX::floor($id / 256);
if ($dpr == 1) {
return ($fname, undef);
}
- my $cachename = get_cache_location($r, $id, $xres, $yres);
+ my $cachename = get_cache_location($id, $xres, $yres);
my $err;
if (! -r $cachename or (-M $cachename > -M $fname)) {
# If we are in overload mode (aka Slashdot mode), refuse to generate
while (defined($xres) && defined($yres)) {
my ($nxres, $nyres) = (shift @otherres, shift @otherres);
- my $cachename = get_cache_location($r, $id, $xres, $yres);
+ my $cachename = get_cache_location($id, $xres, $yres);
my $cimg;
if (defined($nxres) && defined($nyres)) {
my ($new_dbwidth, $new_dbheight);
my $fname = get_disk_location($r, $id);
- my $cachename = get_infobox_cache_location($r, $id, $xres, $yres, $dpr);
+ my $cachename = get_infobox_cache_location($id, $xres, $yres, $dpr);
my $err;
if (! -r $cachename or (-M $cachename > -M $fname)) {
# If we are in overload mode (aka Slashdot mode), refuse to generate
$model =~ s/^\s+//;
$model =~ s/\s+$//;
- push @parts, [ ' - ', 0 ] if (scalar @parts > 0);
+ push @parts, [ "\x{00A0}\x{2013}\x{00A0}", 0 ] if (scalar @parts > 0);
push @parts, [ $model, 0 ];
}
# classic fields
if (scalar @classic_fields > 0) {
- push @parts, [ ' - ', 0 ] if (scalar @parts > 0);
+ push @parts, [ "\x{00A0}\x{2013}\x{00A0}", 0 ] if (scalar @parts > 0);
my $first_elem = 1;
for my $field (@classic_fields) {
$info->{'Flash'} =~ /no flash/i ||
$info->{'Flash'} =~ /not fired/i ||
$info->{'Flash'} =~ /Off/) {
- push @parts, [ ' - ', 0 ] if (scalar @parts > 0);
+ push @parts, [ "\x{00A0}\x{2013}\x{00A0}", 0 ] if (scalar @parts > 0);
push @parts, [ "No flash", 0 ];
} elsif ($info->{'Flash'} =~ /fired/i ||
$info->{'Flash'} =~ /On/) {
- push @parts, [ ' - ', 0 ] if (scalar @parts > 0);
+ push @parts, [ "\x{00A0}\x{2013}\x{00A0}", 0 ] if (scalar @parts > 0);
push @parts, [ "Flash", 0 ];
} else {
- push @parts, [ ' - ', 0 ] if (scalar @parts > 0);
+ push @parts, [ "\x{00A0}\x{2013}\x{00A0}", 0 ] if (scalar @parts > 0);
push @parts, [ $info->{'Flash'}, 0 ];
}
}