fix problems with gallery URLs. fixed disk space check. added error messages to photo template
This commit is contained in:
parent
5b467483f5
commit
58417faf8a
9 changed files with 84 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue