From 6eedf9ee17e022858491ff2396f6b9b9aa4b2cf7 Mon Sep 17 00:00:00 2001 From: ben Date: Wed, 4 Feb 2009 14:52:16 +0000 Subject: Added unique title tags to the entity browser. Fixes #722 git-svn-id: https://code.elgg.org/elgg/trunk@2643 36083f99-b078-4883-b0ff-0f9b5a30f544 --- entities/index.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/entities/index.php b/entities/index.php index 16dd10879..4f16298e0 100644 --- a/entities/index.php +++ b/entities/index.php @@ -37,6 +37,11 @@ } // Set the body to be the full view of the entity, and the title to be its title + if ($entity instanceof ElggObject) { + $title = $entity->title; + } else if ($entity instanceof ElggEntity) { + $title = $entity->name; + } $area2 = elgg_view_entity($entity,true); if ($shell) { $body = elgg_view_layout('two_column_left_sidebar', '', $area1 . $area2); @@ -53,9 +58,10 @@ // Display the page if ($shell) { - page_draw("", $body); - } else { + page_draw($title, $body); + } else { header("Content-type: text/html; charset=UTF-8"); + echo $title; echo $body; } -- cgit v1.2.3