aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2012-07-29 01:55:43 +0200
committerSem <sembrestels@riseup.net>2012-07-29 01:55:43 +0200
commit504e3a0b8588516b75c2baf3af5f600d0827c135 (patch)
treebb4d885f8a8ea7e210f4c98f9477f8e32e76524d
parentd85f7798d5f69187de2a3159360ce29d38ead6a9 (diff)
downloadelgg-504e3a0b8588516b75c2baf3af5f600d0827c135.tar.gz
elgg-504e3a0b8588516b75c2baf3af5f600d0827c135.tar.bz2
Album gallery thumbnails have links to albums instead to photos.
-rw-r--r--views/default/icon/object/album.php1
-rw-r--r--views/default/icon/object/image.php2
2 files changed, 2 insertions, 1 deletions
diff --git a/views/default/icon/object/album.php b/views/default/icon/object/album.php
index 656b2e0df..55bb7451b 100644
--- a/views/default/icon/object/album.php
+++ b/views/default/icon/object/album.php
@@ -17,6 +17,7 @@ $album = $vars['entity'];
$cover_guid = $album->getCoverImageGuid();
if ($cover_guid) {
$vars['title'] = $album->getTitle();
+ $vars['href'] = $album->getURL();
echo elgg_view_entity_icon(get_entity($cover_guid), $vars['size'], $vars);
} else {
$url = "mod/tidypics/graphics/empty_album.png";
diff --git a/views/default/icon/object/image.php b/views/default/icon/object/image.php
index 3dbced8ab..9087fc3d8 100644
--- a/views/default/icon/object/image.php
+++ b/views/default/icon/object/image.php
@@ -27,7 +27,7 @@ if (!isset($vars['title'])) {
$title = $vars['title'];
}
-$url = $entity->getURL();
+$url = isset($vars['href']) ? $vars['href'] : $entity->getURL();
if (isset($vars['href'])) {
$url = $vars['href'];
}