make a nodes variable to pass nodes by reference

darcs-hash:20080602182153-84dde-4e5ac1c02e8e7a408d251ffa0aa2bbff190d1631.gz
This commit is contained in:
Evan Prodromou 2008-06-02 14:21:53 -04:00
parent 44058fe50a
commit 98437f21f9

View File

@ -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;