From 252cc44a72b6be8b293cdbd62d7ffdabe1ed9176 Mon Sep 17 00:00:00 2001 From: Nigel Banks Date: Thu, 20 Dec 2012 17:50:14 +0000 Subject: [PATCH] Removed instantiation of NewFedoraObject. --- includes/utilities.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/utilities.inc b/includes/utilities.inc index 55ef7562..066946e9 100644 --- a/includes/utilities.inc +++ b/includes/utilities.inc @@ -382,7 +382,7 @@ function islandora_get_datastreams_requirements_from_content_model(FedoraObject function islandora_prepare_new_object($namespace = NULL, $label = NULL, $datastreams = array(), $content_models = array(), $relationships = array()) { global $user; $tuque = islandora_get_tuque_connection(); - $object = isset($namespace) ? $tuque->repository->constructObject($namespace) : new NewFedoraObject(NULL, $tuque->repository); + $object = $tuque->repository->constructObject($namespace); $object->owner = isset($user->name) ? $user->name : $object->owner; $object->label = isset($label) ? $label : $object->label; foreach ($content_models as $content_model) {