From 63890996717507765ed219824c61bef906429e06 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."); } } } -- 2.39.5