Browse Source

Update domdocument to allow fetching maps from meta

master
Adam Pippin 3 years ago
parent
commit
2f197b4b51
  1. 9
      app/Dom/Document.php

9
app/Dom/Document.php

@ -42,6 +42,15 @@ class Document extends Node
}
return $values;
}
elseif ($node->isMap())
{
$values = [];
foreach ($node as $child)
{
$values[$child->getName()] = $child->getValue();
}
return $values;
}
throw new \Exception('Cannot retrieve meta value: '.$path);
}

Loading…
Cancel
Save