More Gallery i18n

fix: Add an Album link now appears on Gallery List Albums view
This commit is contained in:
Doug Bell 2008-02-21 18:38:25 +00:00
parent 5f28ad91c3
commit ce4688310e
8 changed files with 178 additions and 5 deletions

View file

@ -99,7 +99,7 @@ sub definition {
push @{$definition}, {
assetName => $i18n->get('assetName'),
autoGenerateForms => 0,
icon => 'Image.gif',
icon => 'photo.gif',
tableName => 'Photo',
className => 'WebGUI::Asset::File::Image::Photo',
i18n => 'Asset_Photo',
@ -932,6 +932,10 @@ sub www_edit {
my $var = {
url_addArchive => $self->getParent->getUrl('func=addArchive'),
};
if ( $form->get('assetId') eq "new" ) {
$var->{ isNewPhoto } = 1;
}
# Generate the form
if ($form->get("func") eq "add") {