make a nodes variable to pass nodes by reference
darcs-hash:20080602182153-84dde-4e5ac1c02e8e7a408d251ffa0aa2bbff190d1631.gz
This commit is contained in:
parent
44058fe50a
commit
98437f21f9
|
@ -211,7 +211,9 @@ class RemotesubscribeAction extends Action {
|
||||||
$attrs = $parser->attributes($node);
|
$attrs = $parser->attributes($node);
|
||||||
if (array_key_exists('xml:id', $attrs) &&
|
if (array_key_exists('xml:id', $attrs) &&
|
||||||
$attrs['xml:id'] == $id) {
|
$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;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user