Hi,
I use .comment future of ApacheGallery to add comments to pictures
and directories, and also to set page title.
But when I upgraded to 0.8 title wasn't set (there was Index of:
instead).
I modified Gallery.pm to fit my needs, but I'm not sure, if it was
clean - but it works.
My one line modification is in attached patch.
Have a nice day
--
.''`. Ondra 'Kepi' Kudlik
: :' : Debian GNU/Linux User
`. `'
`- Web: http://kepi.shell42.com * Jabber: kepi@xxxxxxxxxxxxx
diff -uN Gallery.pm.orig Gallery.pm
--- Gallery.pm.orig 2004-04-13 00:50:28.000000000 +0200
+++ Gallery.pm 2004-04-13 00:57:00.000000000 +0200
@@ -358,7 +358,7 @@
my $comment_ref = get_comment($topdir . '.comment');
my %comment_vars;
$comment_vars{COMMENT} = $comment_ref->{COMMENT} . '<br>' if $comment_ref->{COMMENT};
- $comment_vars{TITLE} = $comment_ref->{TITLE} if $comment_ref->{TITLE};
+ $tpl_vars{TITLE} = $comment_ref->{TITLE} if $comment_ref->{TITLE};
$tpl_vars{DIRCOMMENT} = fill_in_file($tpl_vars{comment},
HASH => \%comment_vars,
);
Attachment:
signature.asc
Description: Digital signature