fix problems with gallery URLs. fixed disk space check. added error messages to photo template

This commit is contained in:
Doug Bell 2008-06-12 22:08:10 +00:00
parent 5b467483f5
commit 58417faf8a
9 changed files with 84 additions and 2 deletions

View file

@ -506,6 +506,15 @@ sub www_edit {
url_addArchive => $self->getParent->getUrl('func=addArchive'),
url_album => $self->getParent->getUrl('func=album'),
};
# Process errors if any
if ( $session->stow->get( 'editFormErrors' ) ) {
for my $error ( @{ $session->stow->get( 'editFormErrors' ) } ) {
push @{ $var->{ errors } }, {
error => $error,
};
}
}
if ( $form->get('func') eq "add" ) {
$var->{ isNewPhoto } = 1;