added ability to configure number of files per page in the galleryalbum

This commit is contained in:
Doug Bell 2008-06-09 21:37:23 +00:00
parent e7260285be
commit b137688f65
5 changed files with 37 additions and 1 deletions

View file

@ -100,6 +100,7 @@
- added: A template variable to distinguish between Files and Albums in the Gallery
Search
- added: A thumbnail for Photo edit screen
- added: Configure the amount of files shown per page in the Gallery
7.5.10
- fix: Syntax error in GetCsMail

View file

@ -78,9 +78,24 @@ addLoginMessage( $session );
addNewApprovalActivities( $session );
addUserListWobject( $session );
addInheritUrlFromParent( $session );
addDefaultFilesPerPage( $session );
finish($session); # this line required
#----------------------------------------------------------------------------
# Add default files per page to the Gallery
sub addDefaultFilesPerPage {
my $session = shift;
print "\tAdding Default Files Per Page to Gallery... " unless $quiet;
$session->db->write(
"ALTER TABLE Gallery ADD COLUMN defaultFilesPerPage INT"
);
$session->db->write(
"UPDATE Gallery SET defaultFilesPerPage=24"
);
print "DONE!\n" unless $quiet;
}
#----------------------------------------------------------------------------
# Add two new approval activities
sub addNewApprovalActivities {