Include full image object list in ajax result contents
This commit is contained in:
parent
8000ef3a38
commit
6495cc68c1
|
@ -6,6 +6,7 @@ $data = array();
|
||||||
$data["albumcontents"] = "";
|
$data["albumcontents"] = "";
|
||||||
$data["albumtitle"] = "";
|
$data["albumtitle"] = "";
|
||||||
$data["albumdescription"] = "";
|
$data["albumdescription"] = "";
|
||||||
|
$data["images"] = array();
|
||||||
|
|
||||||
if ( $_SESSION['currentalbum'] != 0 ) {
|
if ( $_SESSION['currentalbum'] != 0 ) {
|
||||||
$album = new Album($_SESSION['currentalbum']);
|
$album = new Album($_SESSION['currentalbum']);
|
||||||
|
@ -15,6 +16,7 @@ if ( $_SESSION['currentalbum'] != 0 ) {
|
||||||
$griditems = Image::getImagesForAlbum($album->getID());
|
$griditems = Image::getImagesForAlbum($album->getID());
|
||||||
$data["albumtitle"] = $album->getTitle();
|
$data["albumtitle"] = $album->getTitle();
|
||||||
$data["albumdescription"] = $album->getDescription();
|
$data["albumdescription"] = $album->getDescription();
|
||||||
|
$data["images"] = $griditems;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( $_SESSION['currentalbum'] == 0 ) {
|
if ( $_SESSION['currentalbum'] == 0 ) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user