]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Album gallery thumbnails have links to albums instead to photos.
authorSem <sembrestels@riseup.net>
Sat, 28 Jul 2012 23:55:43 +0000 (01:55 +0200)
committerSem <sembrestels@riseup.net>
Sat, 28 Jul 2012 23:55:43 +0000 (01:55 +0200)
views/default/icon/object/album.php
views/default/icon/object/image.php

index 656b2e0df644f286d08f933c140f51add6066aae..55bb7451b8b378fbbb4f0a68759fe5b6cf3207df 100644 (file)
@@ -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";
index 3dbced8ab710f9dc02d8b4c7220fd293a0e01499..9087fc3d8ef1982fd9eb4c1531bac4889411396b 100644 (file)
@@ -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'];
 }