Commit 68bc719a authored by Nigel McNie's avatar Nigel McNie
Browse files

Check for LEAP2A namespaces, and warn if they're not present.



Some other portfolio systems don't declare them properly. This really
harms interoperability, but it's not our fault.
Signed-off-by: default avatarNigel McNie <nigel@catalyst.net.nz>
parent e75babc5
......@@ -118,6 +118,14 @@ class PluginImportLeap extends PluginImport {
// able to import raw ATOM feeds too)
//throw new ImportException($this, "Import wasn't valid. TODO: error reporting");
// Check all the namespaces we're gonna need are declared, and warn if
// they're not there
foreach (array(self::NS_ATOM, self::NS_RDF, self::NS_LEAP, self::NS_LEAPTYPE, self::NS_CATEGORIES) as $ns) {
if (!isset($this->namespaces[$ns])) {
$this->trace("WARNING: Namespaces $ns wasn't declared - this will make importing data correctly difficult");
}
}
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment