Codebase list libapache-gallery-perl / 8d58658
Change underscores to spaces for images too (Closes: #348724) git-svn-id: file:///srv/don_svn/deb_pkgs/libapache-gallery-perl/trunk@559 8f7917da-ec0b-0410-a553-b9b0e350d17e Don Armstrong 12 years ago
4 changed file(s) with 25 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
11 $Date: 2011-02-22 21:56:06 +0100 (Tue, 22 Feb 2011) $
22
33 Revision history for Perl extension Apache::Gallery.
4
5 1.0.2~1 Tue Mar 15 03:08:57 CET 2011
6
7 - Extended GalleryUnderscoresToSpaces to filenames as well.
8 (Debian bug #348724, Francesco Potortì)
49
510 1.0.1 Wed Feb 23 20:45:38 CET 2011
611
234234
235235 GalleryUnderscoresToSpaces
236236 Set this option to 1 to convert underscores to spaces in the listing
237 of directory names.
237 of directory and file names, as well as in the alt attribute for HTML
238 <img> tags.
238239
239240 GalleryCommentExifKey
240241 Set this option to e.g. ImageDescription to use this field as comments
0 libapache-gallery-perl (1.0.1-1) UNRELEASED; urgency=low
0 libapache-gallery-perl (1.0.1-1) unstable; urgency=low
11
22 * New upstream release
3 * Change underscores to spaces for images too (Closes: #348724)
34
4 -- Don Armstrong <don@debian.org> Wed, 16 Mar 2011 08:59:31 -0700
5 -- Don Armstrong <don@debian.org> Wed, 28 Sep 2011 12:34:55 -0700
56
67 libapache-gallery-perl (0.99-svn060811-1) unstable; urgency=low
78
384384 $filetype = "unknown";
385385 }
386386
387 # Debian bug #348724 <http://bugs.debian.org/348724>
388 # not images
389 my $filetitle = $file;
390 $filetitle =~ s/_/ /g if $r->dir_config('GalleryUnderscoresToSpaces');
391
387392 $tpl_vars{FILES} .=
388393 $templates{file}->fill_in(HASH => {%tpl_vars,
389394 FILEURL => uri_escape($fileurl, $escape_rule),
390395 ALT => "Size: $size Bytes",
391 FILE => $file,
396 FILE => $filetitle,
392397 TYPE => $type,
393398 FILETYPE => $filetype,
394399 }
407412 my $cached = get_scaled_picture_name($thumbfilename, $thumbnailwidth, $thumbnailheight);
408413
409414 my $rotate = readfile_getnum($r, $imageinfo, $thumbfilename.".rotate");
415
416 # Debian bug #348724 <http://bugs.debian.org/348724>
417 # HTML <img> tag, alt attribute
418 my $filetitle = $file;
419 $filetitle =~ s/_/ /g if $r->dir_config('GalleryUnderscoresToSpaces');
420
410421 my %file_vars = (FILEURL => uri_escape($fileurl, $escape_rule),
411 FILE => $file,
422 FILE => $filetitle,
412423 DATE => $imageinfo->{DateTimeOriginal} ? $imageinfo->{DateTimeOriginal} : '', # should this really be a stat of the file instead of ''?
413424 SRC => uri_escape($uri."/.cache/$cached", $escape_rule),
414425 HEIGHT => (grep($rotate==$_, (1, 3)) ? $thumbnailwidth : $thumbnailheight),
18961907 =item B<GalleryUnderscoresToSpaces>
18971908
18981909 Set this option to 1 to convert underscores to spaces in the listing
1899 of directory names.
1910 of directory and file names, as well as in the alt attribute for HTML
1911 <img> tags.
19001912
19011913 =back
19021914