aboutsummaryrefslogtreecommitdiff
path: root/entities
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-04 14:52:16 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-04 14:52:16 +0000
commit6eedf9ee17e022858491ff2396f6b9b9aa4b2cf7 (patch)
treedf809cae5f79f90dfafcc8afa430f1c8879c226c /entities
parentfa1b508915dd3df4fe51629d031244eddb963ff4 (diff)
downloadelgg-6eedf9ee17e022858491ff2396f6b9b9aa4b2cf7.tar.gz
elgg-6eedf9ee17e022858491ff2396f6b9b9aa4b2cf7.tar.bz2
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
Diffstat (limited to 'entities')
-rw-r--r--entities/index.php10
1 files 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;
}