summaryrefslogtreecommitdiff
path: root/actions/remotesubscribe.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-06-02 14:21:53 -0400
committerEvan Prodromou <evan@prodromou.name>2008-06-02 14:21:53 -0400
commit98437f21f9402d5a6c3569a0c558b13881d77848 (patch)
tree498b88ba4cef06c7c501971b6f7788067157199f /actions/remotesubscribe.php
parent44058fe50ad006d976628fcdca6d95ec1016b148 (diff)
make a nodes variable to pass nodes by reference
darcs-hash:20080602182153-84dde-4e5ac1c02e8e7a408d251ffa0aa2bbff190d1631.gz
Diffstat (limited to 'actions/remotesubscribe.php')
-rw-r--r--actions/remotesubscribe.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/actions/remotesubscribe.php b/actions/remotesubscribe.php
index b64655bbe..4594bb37e 100644
--- a/actions/remotesubscribe.php
+++ b/actions/remotesubscribe.php
@@ -211,7 +211,9 @@ class RemotesubscribeAction extends Action {
$attrs = $parser->attributes($node);
if (array_key_exists('xml:id', $attrs) &&
$attrs['xml:id'] == $id) {
- return new Auth_Yadis_XRDS($parser, array($node));
+ # XXX: trick the constructor into thinking this is the only node
+ $bogus_nodes = array($node);
+ return new Auth_Yadis_XRDS($parser, $bogus_nodes);
}
}
return NULL;