diff options
author | Dave Tosh <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-26 15:39:15 +0000 |
---|---|---|
committer | Dave Tosh <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-26 15:39:15 +0000 |
commit | 413a10665f90bc588b07d3e2a5376fa2f387ba09 (patch) | |
tree | 6b360a7c62ae27d0576b1371cdc1ee0559087b4b /index.php | |
parent | ef868e00b8c0d2226b29690f819613a5a2a8898d (diff) | |
download | elgg-413a10665f90bc588b07d3e2a5376fa2f387ba09.tar.gz elgg-413a10665f90bc588b07d3e2a5376fa2f387ba09.tar.bz2 |
videolist now displays the correct header
git-svn-id: http://code.elgg.org@6232 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -13,7 +13,7 @@ global $CONFIG; require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php"); -$owner = page_owner_entity(); +$page_owner = page_owner_entity(); if ($page_owner === false || is_null($page_owner)) { $page_owner = $_SESSION['user']; set_page_owner($page_owner->getGUID()); @@ -37,11 +37,15 @@ $title = sprintf(elgg_echo("videolist:home"), "$owner->name"); //set videolist header if(page_owner() == get_loggedin_userid()) { $area1 .= elgg_view('page_elements/content_header', array('context' => "mine", 'type' => 'videolist')); +}elseif(page_owner_entity() instanceof ElggGroup){ + $area1 .= elgg_view('navigation/breadcrumbs'); + $area1 .= elgg_view('videolist/group_video_header'); } else { $area1 .= elgg_view('navigation/breadcrumbs'); $area1 .= elgg_view('page_elements/content_header_member', array('type' => 'videolist')); } + // include a view for plugins to extend $area3 = elgg_view("videolist/sidebar", array("object_type" => 'videolist')); |