gallery bug unique gallery

This commit is contained in:
Fred Tempez 2022-05-19 18:47:49 +02:00
parent 0550e7a8f9
commit 7b01190bcd
2 changed files with 2 additions and 2 deletions

View File

@ -878,7 +878,7 @@ class gallery extends common {
// Sauver la configuration de la galerie
$this->setData(['module', $this->getUrl(0), 'config', [
'showUniqueGallery' => $this->getinput('galleryOptionShowUniqueGallery', helper::FILTER_BOOLEAN),
'showUniqueGallery' => $this->getinput('galleriesOptionShowUniqueGallery', helper::FILTER_BOOLEAN),
'backPosition' => $this->getinput('galleryOptionBackPosition', null),
'backAlign' => $this->getinput('galleryOptionBackAlign', null)
]]);

View File

@ -18,7 +18,7 @@
<h4>Options</h4>
<div class="row">
<div class="col12">
<?php echo template::checkbox('galleriesOptionShowUniqueGallery', true, 'Masquer l\'index des galeries lorsque le module ne contient qu\'une galerie' , [
<?php echo template::checkbox('galleriesOptionShowUniqueGallery', true, 'Masquer l\'index des galeries lorsque le module ne contient qu\'une seule galerie' , [
'checked' => count($this->getData(['module', $this->getUrl(0), 'content'])) === 1
? $this->getData(['module', $this->getUrl(0), 'config', 'showUniqueGallery'])
: false,