aboutsummaryrefslogtreecommitdiff
path: root/mod/bookmarks
diff options
context:
space:
mode:
Diffstat (limited to 'mod/bookmarks')
-rw-r--r--mod/bookmarks/bookmarklet.php5
-rw-r--r--mod/bookmarks/start.php12
2 files changed, 13 insertions, 4 deletions
diff --git a/mod/bookmarks/bookmarklet.php b/mod/bookmarks/bookmarklet.php
index 8e30f52dd..7a2f1a16f 100644
--- a/mod/bookmarks/bookmarklet.php
+++ b/mod/bookmarks/bookmarklet.php
@@ -28,8 +28,9 @@ $area2 .= elgg_view('bookmarks/bookmarklet', array('pg_owner' => $page_owner));
// if logged in, get the bookmarklet
$area3 = elgg_view("bookmarks/bookmarklet");
-// Format page
-$body = elgg_view_layout('one_column_with_sidebar', $area1.$area2, $area3);
+// Format
+$content = $area1 . $area2 . $area3;
+$body = elgg_view_layout('one_column_with_sidebar', array('content' => $content));
// Draw it
echo elgg_view_page(elgg_echo('bookmarks:bookmarklet'),$body); \ No newline at end of file
diff --git a/mod/bookmarks/start.php b/mod/bookmarks/start.php
index b0a2369d3..95922cd22 100644
--- a/mod/bookmarks/start.php
+++ b/mod/bookmarks/start.php
@@ -95,7 +95,11 @@ function bookmarks_page_handler($page) {
$sidebar = elgg_view('bookmarks/sidebar', array('object_type' => 'bookmarks'));
$content = elgg_echo("bookmarks:unknown_user");
- $body = elgg_view_layout('one_column_with_sidebar', $content, $sidebar);
+ $params = array(
+ 'content' => $content,
+ 'sidebar' => $sidebar,
+ );
+ $body = elgg_view_layout('one_column_with_sidebar', $params);
echo elgg_view_page(elgg_echo("bookmarks:user", array(elgg_get_page_owner()->name)), $body);
return FALSE;
@@ -239,7 +243,11 @@ function bookmarks_page_handler($page) {
}
$content = $header . $content;
- $body = elgg_view_layout('one_column_with_sidebar', $content, $sidebar);
+ $params = array(
+ 'content' => $content,
+ 'sidebar' => $sidebar,
+ );
+ $body = elgg_view_layout('one_column_with_sidebar', $params);
echo elgg_view_page(elgg_echo("bookmarks:user", array(elgg_get_page_owner()->name)), $body);
return TRUE;