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

@ -4,6 +4,12 @@
redirected to after the login / createAccount is done.
- RFE: Spectre diagnostics on version tag commit (perlDreamer Consulting, LLC.)
http://www.plainblack.com/rfe/request-for-enhancement/spectre-diagnostics-on-version-tag-commit
- 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
7.5.1
- fix: Extra head tags of unplaced assets included twice

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 --------------------------------