projects
/
quix0rs-gnu-social.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3aca93
)
Parse properties of links in XRD files
author
Evan Prodromou
<evan@status.net>
Mon, 3 Jan 2011 15:41:13 +0000
(07:41 -0800)
committer
Evan Prodromou
<evan@status.net>
Sat, 8 Jan 2011 00:29:10 +0000
(19:29 -0500)
lib/xrd.php
patch
|
blob
|
history
diff --git
a/lib/xrd.php
b/lib/xrd.php
index 9c6d9f3ab70044a4d8573ff713c38778fca51f88..40372b9d7a454c313fb7f7f3ea98cda4362cc412 100644
(file)
--- 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.");
}
}
}