Skip to content

Commit

Permalink
Merge remote-tracking branch 'splittingred/pr/271' into pr-271
Browse files Browse the repository at this point in the history
  • Loading branch information
jpdevries committed Oct 1, 2013
2 parents b6afc61 + 8c2425c commit a82c6ff
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,15 @@
/* iterate */
$output = array();
$idx = 0;
$filesUrl = $modx->call('galAlbum','getFilesUrl',array(&$modx));
/** @var galAlbum $album */
foreach ($albums as $album) {
$albumArray = $album->toArray();

$coverItem = $album->getCoverItem($albumCoverSort,$albumCoverSortDir);
if ($coverItem) {
$albumArray['image'] = $coverItem->get('thumbnail',$thumbProperties);
$albumArray['image_absolute'] = $filesUrl.$coverItem->get('filename');
$albumArray['total'] = $coverItem->get('total');
}

Expand All @@ -90,4 +92,4 @@
$modx->setPlaceholder($toPlaceholder,$output);
return '';
}
return $output;
return $output;

0 comments on commit a82c6ff

Please sign in to comment.