From 5571ca5b350fd1735f13af7ddfbb88afa6befb0c Mon Sep 17 00:00:00 2001 From: brettp Date: Mon, 5 Apr 2010 15:11:05 +0000 Subject: Merged 5487:5525 from 1.7 to trunk. git-svn-id: http://code.elgg.org/elgg/trunk@5621 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/entities.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'engine/lib') diff --git a/engine/lib/entities.php b/engine/lib/entities.php index e3fa0cb52..3d16e1b3d 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -146,6 +146,8 @@ abstract class ElggEntity implements $this->attributes['guid'] = ""; + $this->attributes['subtype'] = $orig_entity->getSubtype(); + // copy metadata over to new entity - slightly convoluted due to // handling of metadata arrays if (is_array($metadata_array)) { @@ -204,8 +206,6 @@ abstract class ElggEntity implements * A: Because overload operators cause problems during subclassing, so we put the code here and * create overloads in subclasses. * - * @todo Move "title" logic to applicable extending classes. - * * @param string $name * @param mixed $value */ @@ -216,11 +216,6 @@ abstract class ElggEntity implements return false; } - // strip out tags from title - if ($name == 'title') { - $value = strip_tags($value); - } - $this->attributes[$name] = $value; } else { -- cgit v1.2.3