aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorIsmayil Khayredinov <ismayil.khayredinov@gmail.com>2013-04-12 18:53:28 +0300
committercash <cash.costello@gmail.com>2013-04-19 19:36:52 -0400
commitd39b04a835556ed84f8f6fc8367321b36209bbbd (patch)
tree979a3d94bab1810060f2a57df31d6e9d08296c71 /mod
parentc4e17030d2041963a11f86abee584c04ee7ccd82 (diff)
downloadelgg-d39b04a835556ed84f8f6fc8367321b36209bbbd.tar.gz
elgg-d39b04a835556ed84f8f6fc8367321b36209bbbd.tar.bz2
#5348: Page handler passes title to non wg layout
Diffstat (limited to 'mod')
-rw-r--r--mod/externalpages/start.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/mod/externalpages/start.php b/mod/externalpages/start.php
index 74da7f828..f0ffa6b9d 100644
--- a/mod/externalpages/start.php
+++ b/mod/externalpages/start.php
@@ -12,7 +12,7 @@ function expages_init() {
elgg_register_page_handler('terms', 'expages_page_handler');
elgg_register_page_handler('privacy', 'expages_page_handler');
elgg_register_page_handler('expages', 'expages_page_handler');
-
+
// Register public external pages
elgg_register_plugin_hook_handler('public_pages', 'walled_garden', 'expages_public');
@@ -65,7 +65,7 @@ function expages_page_handler($page, $handler) {
$type = strtolower($handler);
$title = elgg_echo("expages:$type");
- $content = elgg_view_title($title);
+ $header = elgg_view_title($title);
$object = elgg_get_entities(array(
'type' => 'object',
@@ -80,11 +80,11 @@ function expages_page_handler($page, $handler) {
$content = elgg_view('expages/wrapper', array('content' => $content));
if (elgg_is_logged_in() || !elgg_get_config('walled_garden')) {
- $body = elgg_view_layout('one_sidebar', array('content' => $content));
+ $body = elgg_view_layout('one_sidebar', array('title' => $title, 'content' => $content));
echo elgg_view_page($title, $body);
} else {
elgg_load_css('elgg.walled_garden');
- $body = elgg_view_layout('walled_garden', array('content' => $content));
+ $body = elgg_view_layout('walled_garden', array('content' => $header . $content));
echo elgg_view_page($title, $body, 'walled_garden');
}
return true;