aboutsummaryrefslogtreecommitdiff
path: root/mod/custom_index
diff options
context:
space:
mode:
Diffstat (limited to 'mod/custom_index')
-rw-r--r--mod/custom_index/index.php3
-rw-r--r--mod/custom_index/views/default/page/layouts/custom_index.php2
2 files changed, 3 insertions, 2 deletions
diff --git a/mod/custom_index/index.php b/mod/custom_index/index.php
index e39e6ef29..53990a006 100644
--- a/mod/custom_index/index.php
+++ b/mod/custom_index/index.php
@@ -35,7 +35,8 @@ $newest_members = elgg_list_entities_from_metadata(array(
'limit' => 10,
'full_view' => false,
'pagination' => false,
- 'gallery' => true,
+ 'list_type' => 'gallery',
+ 'gallery_class' => 'elgg-gallery-users',
'size' => 'small',
));
diff --git a/mod/custom_index/views/default/page/layouts/custom_index.php b/mod/custom_index/views/default/page/layouts/custom_index.php
index 0883e7274..6b3f6d739 100644
--- a/mod/custom_index/views/default/page/layouts/custom_index.php
+++ b/mod/custom_index/views/default/page/layouts/custom_index.php
@@ -17,7 +17,7 @@
// Top box for login or welcome message
if (elgg_is_logged_in()) {
$top_box = "<h2>" . elgg_echo("welcome") . " ";
- $top_box .= get_loggedin_user()->name;
+ $top_box .= elgg_get_logged_in_user_entity()->name;
$top_box .= "</h2>";
} else {
$top_box = $vars['login'];