'copyright', 'license', 'elgg_version',
// were never really used and not enforced in code.
- 'requires', 'recommends', 'conflicts'
+ 'requires', 'recommends', 'conflicts',
+
+ // not a 1.7 field, but we need it
+ 'name',
);
/**
return false;
}
+ $elements = array();
+
foreach ($this->manifestObject->children as $element) {
$key = $element->attributes['key'];
$value = $element->attributes['value'];
}
}
+ if ($elements && !array_key_exists('name', $elements)) {
+ $elements['name'] = $this->caller->getName();
+ }
+
$this->manifest = $elements;
if (!$this->manifest) {