forked from GNUsocial/gnu-social
Parse properties of links in XRD files
This commit is contained in:
parent
f51db8eb0d
commit
ef1fdd595f
@ -173,6 +173,13 @@ class XRD
|
|||||||
switch($node->tagName) {
|
switch($node->tagName) {
|
||||||
case 'Title':
|
case 'Title':
|
||||||
$link['title'][] = $node->nodeValue;
|
$link['title'][] = $node->nodeValue;
|
||||||
|
break;
|
||||||
|
case 'Property':
|
||||||
|
$link['property'][] = array('type' => $node->getAttribute('type'),
|
||||||
|
'value' => $node->nodeValue);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
common_log(LOG_NOTICE, "Unexpected tag name {$node->tagName} found in XRD file.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user