From ef1fdd595f0bee0847be187733eea9d7b705b328 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 3 Jan 2011 07:41:13 -0800 Subject: [PATCH] Parse properties of links in XRD files --- lib/xrd.php | 7 +++++++ 1 file changed, 7 insertions(+) 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."); } } }