From 1a17c096f8ad727ff9113a4b0a2f54acd55088b6 Mon Sep 17 00:00:00 2001 From: ben Date: Tue, 22 Jul 2008 16:49:30 +0000 Subject: Yet more container refactoring. git-svn-id: https://code.elgg.org/elgg/trunk@1496 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/objects.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'engine/lib/objects.php') diff --git a/engine/lib/objects.php b/engine/lib/objects.php index d2f90bdfd..530c211bd 100644 --- a/engine/lib/objects.php +++ b/engine/lib/objects.php @@ -30,8 +30,7 @@ protected function initialise_attributes() { parent::initialise_attributes(); - - $this->attributes['container_guid'] = $_SESSION['id']; + $this->attributes['type'] = "object"; $this->attributes['title'] = ""; $this->attributes['description'] = ""; @@ -61,7 +60,7 @@ // Is $guid is an ElggObject? Use a copy constructor else if ($guid instanceof ElggObject) { - foreach ($guid->attributes as $key => $value) + foreach ($guid->attributes as $key => $value) $this->attributes[$key] = $value; } -- cgit v1.2.3