Fixed regression in OStatus sub from WebFinger/XML_XRD update

XML_XRD::getAll requires arguments (at least relation). If one really
want all links, just get the 'links' array. It's public!

Also, not all XML_XRD_Element_Link were migrated from the previous
array style.
This commit is contained in:
Mikael Nordfeldth
2013-09-30 23:12:35 +02:00
parent cced063e47
commit a7e748479c
4 changed files with 13 additions and 5 deletions

View File

@@ -59,12 +59,12 @@ class MagicEnvelope
$link = $xrd->get(Magicsig::PUBLICKEYREL);
if (!is_null($link)) {
$keypair = false;
$parts = explode(',', $link['href']);
$parts = explode(',', $link->href);
if (count($parts) == 2) {
$keypair = $parts[1];
} else {
// Backwards compatibility check for separator bug in 0.9.0
$parts = explode(';', $link['href']);
$parts = explode(';', $link->href);
if (count($parts) == 2) {
$keypair = $parts[1];
}