aboutsummaryrefslogtreecommitdiff
path: root/mod/opendd/index.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-21 17:08:06 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-21 17:08:06 +0000
commitd5fc2ec8fb6dfccc80e3c650f49b39dd2a18c220 (patch)
tree18c2283c0459b57a7df6482e9e48cbbd163837a7 /mod/opendd/index.php
parent3b8e6d855a0b60c2d44871341e4b36b61969c0aa (diff)
downloadelgg-d5fc2ec8fb6dfccc80e3c650f49b39dd2a18c220.tar.gz
elgg-d5fc2ec8fb6dfccc80e3c650f49b39dd2a18c220.tar.bz2
OpenDD using elgg_view_title
git-svn-id: https://code.elgg.org/elgg/trunk@1485 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/opendd/index.php')
-rw-r--r--mod/opendd/index.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/mod/opendd/index.php b/mod/opendd/index.php
index 83b6b0368..0f1af5537 100644
--- a/mod/opendd/index.php
+++ b/mod/opendd/index.php
@@ -17,6 +17,8 @@
$offset = get_input("offset", 0);
$view = get_input("view");
+ $title = sprintf(elgg_echo("opendd:your"),page_owner_entity()->name);
+
$opendd = get_river_entries_as_opendd(page_owner(), "", $limit, $offset);
if ($view=='odd')
@@ -54,6 +56,8 @@
$cnt++;
}
+ $body = elgg_view_title($title);
+
$context = get_context();
set_context('search');
$body .= elgg_view_entity_list($objects, $cnt, $offset, $limit, false);
@@ -71,6 +75,6 @@
$body = elgg_view_layout('one_column',$body);
// Finally draw the page
- page_draw(sprintf(elgg_echo("opendd:your"),page_owner_entity()->name), $body);
+ page_draw($title, $body);
}
?> \ No newline at end of file