From: Evan Prodromou Date: Mon, 3 Jan 2011 15:41:13 +0000 (-0800) Subject: Parse properties of links in XRD files X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ef1fdd595f0bee0847be187733eea9d7b705b328;p=quix0rs-gnu-social.git Parse properties of links in XRD files --- diff --git a/lib/xrd.php b/lib/xrd.php index 9c6d9f3ab7..40372b9d7a 100644 --- a/lib/xrd.php +++ b/lib/xrd.php @@ -173,6 +173,13 @@ class XRD switch($node->tagName) { case 'Title': $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."); } } }