Make sure that the gallery obeys the displayTitle flag. Many gallery
templates were altered to support this.
This commit is contained in:
parent
47889613b9
commit
9fd2d511a0
13 changed files with 12 additions and 1 deletions
|
|
@ -537,7 +537,7 @@ sub getTemplateVars {
|
|||
|
||||
# Add some specific vars from the Gallery
|
||||
my $galleryVar = $gallery->getTemplateVars;
|
||||
for my $key ( qw{ title menuTitle url } ) {
|
||||
for my $key ( qw{ title menuTitle url displayTitle } ) {
|
||||
$var->{ "gallery_" . $key } = $galleryVar->{ $key };
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -124,6 +124,10 @@ our $HELP = {
|
|||
name => 'gallery_url',
|
||||
description => 'helpvar gallery_url',
|
||||
},
|
||||
{
|
||||
name => 'gallery_displayTitle',
|
||||
description => 'helpvar gallery_displayTitle',
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -490,6 +490,12 @@ our $I18N = {
|
|||
context => q{Description of template variable},
|
||||
},
|
||||
|
||||
'helpvar gallery_displayTitle' => {
|
||||
message => q{Whether the Gallery containing this File is set to display its title, or not.},
|
||||
lastUpdated => 0,
|
||||
context => q{Description of template variable},
|
||||
},
|
||||
|
||||
'helpvar isPending' => {
|
||||
message => q{A flag to set if the GalleryAlbum is not yet approved. Users who can edit the GalleryAlbum are allowed to see them before they are approved.},
|
||||
lastUpdated => 0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue