aboutsummaryrefslogtreecommitdiff
path: root/mod/pages/history.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/pages/history.php')
-rw-r--r--mod/pages/history.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/mod/pages/history.php b/mod/pages/history.php
index cb8a52ee2..5a31723cb 100644
--- a/mod/pages/history.php
+++ b/mod/pages/history.php
@@ -19,7 +19,12 @@ if (!$container) {
elgg_set_page_owner_guid($container->getGUID());
-elgg_push_breadcrumb($container->name, $container->getURL());
+if (elgg_instanceof($container, 'group')) {
+ elgg_push_breadcrumb($container->name, "pg/pages/group/$container->guid/owner");
+} else {
+ elgg_push_breadcrumb($container->name, "pg/pages/owner/$container->username");
+}
+pages_prepare_parent_breadcrumbs($page);
elgg_push_breadcrumb($page->title, $page->getURL());
elgg_push_breadcrumb(elgg_echo('pages:history'));
@@ -27,15 +32,12 @@ $title = $page->title . ": " . elgg_echo('pages:history');
$content = list_annotations($page_guid, 'page', 20, false);
-pages_set_navigation_parent($page);
-$sidebar = elgg_view('pages/sidebar/tree');
-
$body = elgg_view_layout('content', array(
'filter' => '',
'buttons' => '',
'content' => $content,
'title' => $title,
- 'sidebar' => $sidebar,
+ 'sidebar' => elgg_view('pages/sidebar/navigation', array('page' => $page)),
));
echo elgg_view_page($title, $body);