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

@ -440,8 +440,9 @@ url to the current page that will be given to the paginator.
sub getFilePaginator {
my $self = shift;
my $url = shift || $self->getUrl;
my $perPage = $self->getParent->get( 'defaultFilesPerPage' );
my $p = WebGUI::Paginator->new( $self->session, $url );
my $p = WebGUI::Paginator->new( $self->session, $url, $perPage );
$p->setDataByArrayRef( $self->getFileIds );
return $p;