forked from ZwiiCMS-Team/ZwiiCMS
Position des images dans updates : correction
This commit is contained in:
parent
d3e3769b62
commit
4e7d005924
@ -1197,9 +1197,9 @@ class common {
|
|||||||
$this->setdata(['module',$parent,$galleryKey,'config','position',$i++]);
|
$this->setdata(['module',$parent,$galleryKey,'config','position',$i++]);
|
||||||
}
|
}
|
||||||
// Positions des images, tri manuel
|
// Positions des images, tri manuel
|
||||||
if ( $this->getdata(['module',$parent,$galleryKey,'position']) === NULL) {
|
if ( $this->getdata(['module',$parent,$galleryKey,'positions']) === NULL) {
|
||||||
$c = count($this->getdata(['module',$parent,$galleryKey,'legend']));
|
$c = count($this->getdata(['module',$parent,$galleryKey,'legend']));
|
||||||
$this->setdata(['module',$parent,$galleryKey,'position', range(0,$c-1) ]);
|
$this->setdata(['module',$parent,$galleryKey,'positions', range(0,$c-1) ]);
|
||||||
}
|
}
|
||||||
// Image de couverture
|
// Image de couverture
|
||||||
if ( $this->getdata(['module',$parent,$galleryKey,'config','homePicture']) === NULL) {
|
if ( $this->getdata(['module',$parent,$galleryKey,'config','homePicture']) === NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user