add: i18n for more Gallery templates

add: International macro now takes sprintf arguments as third and subsequent parameters
add: Keywords are now processed and given to the photo template, along with a url to search the gallery for the keyword. 
add: Photos now track views
This commit is contained in:
Doug Bell 2008-02-12 00:55:06 +00:00
parent 6c72ee9a41
commit fa156af1a9
7 changed files with 265 additions and 5 deletions

View file

@ -23,6 +23,7 @@ my $quiet; # this line required
my $session = start(); # this line required
# upgrade functions go here
addViewsColumnToPhoto( $session );
finish($session); # this line required
@ -34,6 +35,16 @@ finish($session); # this line required
# # and here's our code
#}
#----------------------------------------------------------------------------
# Add the views column to the Photo asset
sub addViewsColumnToPhoto {
my $session = shift;
print "\tAdding 'views' column to Photo asset... " unless $quiet;
$session->db->write(
"ALTER TABLE Photo ADD COLUMN views BIGINT"
);
print "DONE!\n" unless $quiet;
}
# --------------- DO NOT EDIT BELOW THIS LINE --------------------------------