]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
make a nodes variable to pass nodes by reference
authorEvan Prodromou <evan@prodromou.name>
Mon, 2 Jun 2008 18:21:53 +0000 (14:21 -0400)
committerEvan Prodromou <evan@prodromou.name>
Mon, 2 Jun 2008 18:21:53 +0000 (14:21 -0400)
darcs-hash:20080602182153-84dde-4e5ac1c02e8e7a408d251ffa0aa2bbff190d1631.gz

actions/remotesubscribe.php

index b64655bbeab3b1dddd75a21c5c9881a4ce4c1bc6..4594bb37ec83ada683638e97220ee51f5273b4be 100644 (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;