aboutsummaryrefslogtreecommitdiff
path: root/views/default/object/album.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/object/album.php')
-rw-r--r--views/default/object/album.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/views/default/object/album.php b/views/default/object/album.php
index 51b25b7da..bfcfd96d2 100644
--- a/views/default/object/album.php
+++ b/views/default/object/album.php
@@ -14,5 +14,9 @@ $full_view = elgg_extract('full_view', $vars, false);
if ($full_view) {
echo elgg_view('object/album/full', $vars);
} else {
- echo elgg_view('object/album/summary', $vars);
+ if (elgg_in_context('widgets')) {
+ echo elgg_view('object/album/list', $vars);
+ } else {
+ echo elgg_view('object/album/gallery', $vars);
+ }
}