aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-24 10:43:18 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-24 10:43:18 +0000
commitdcbe64cffd8a7ae52badb13cc541e39ab2ed5929 (patch)
treef103cf150d851b7515fd2be0f129c91d502344b7
parent199d3398098f60cb20a129283e57fbb72d6e1307 (diff)
downloadelgg-dcbe64cffd8a7ae52badb13cc541e39ab2ed5929.tar.gz
elgg-dcbe64cffd8a7ae52badb13cc541e39ab2ed5929.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* Unhandled elements issue a warning on import git-svn-id: https://code.elgg.org/elgg/trunk@517 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/export.php6
1 files changed, 5 insertions, 1 deletions
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;
+ }
}
/**