From dcbe64cffd8a7ae52badb13cc541e39ab2ed5929 Mon Sep 17 00:00:00 2001 From: icewing Date: Thu, 24 Apr 2008 10:43:18 +0000 Subject: Marcus Povey * Unhandled elements issue a warning on import git-svn-id: https://code.elgg.org/elgg/trunk@517 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/export.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'engine/lib/export.php') diff --git a/engine/lib/export.php b/engine/lib/export.php index 6291853ca..a578b041e 100644 --- a/engine/lib/export.php +++ b/engine/lib/export.php @@ -380,6 +380,9 @@ // If not, then see if any of its sub elements are handled if (!$handled) { + // Issue a warning + trigger_error("'<{$element->name}>' had no registered handler.", E_USER_WARNING); + if (isset($element->children)) foreach ($element->children as $c) __process_element($c); @@ -388,8 +391,9 @@ { $IMPORTED_OBJECT_COUNTER ++; // Increment validation counter $IMPORTED_DATA[] = $handled; // Return the constructed object - } + return true; + } } /** -- cgit v1.2.3