aboutsummaryrefslogtreecommitdiff
path: root/mod/pages/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/pages/index.php')
-rw-r--r--mod/pages/index.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/mod/pages/index.php b/mod/pages/index.php
index b257b14b4..c4e391206 100644
--- a/mod/pages/index.php
+++ b/mod/pages/index.php
@@ -18,7 +18,7 @@ group_gatekeeper();
$title = elgg_echo('pages:owner', array($owner->name));
-elgg_push_breadcrumb($title);
+elgg_push_breadcrumb($owner->name);
$content = elgg_list_entities(array(
'types' => 'object',
@@ -27,9 +27,17 @@ $content = elgg_list_entities(array(
'limit' => $limit,
'full_view' => false,
));
+if (!$content) {
+ $content = '<p>' . elgg_echo('pages:none') . '</p>';
+}
+
+$filter_context = '';
+if (elgg_get_page_owner_guid() == get_loggedin_userid()) {
+ $filter_context = 'mine';
+}
$params = array(
- 'filter_context' => 'mine',
+ 'filter_context' => $filter_context,
'content' => $content,
'title' => $title,
'sidebar' => elgg_view('pages/sidebar/navigation'),