summaryrefslogtreecommitdiff
path: root/actions/remotesubscribe.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-06-02 14:17:59 -0400
committerEvan Prodromou <evan@prodromou.name>2008-06-02 14:17:59 -0400
commit2364c7c2fe5a0bca64c79872853150c608eb323b (patch)
treef14ca4aa4cbd6c9e40ee733a83436977b84e23ff /actions/remotesubscribe.php
parent3b9f0e3867f98c1022654ca22ba155369600bddc (diff)
services() returns an array
darcs-hash:20080602181759-84dde-97355611da9635d40f41eb9324731cfaa3c584e0.gz
Diffstat (limited to 'actions/remotesubscribe.php')
-rw-r--r--actions/remotesubscribe.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/actions/remotesubscribe.php b/actions/remotesubscribe.php
index f454a1400..f3893e43f 100644
--- a/actions/remotesubscribe.php
+++ b/actions/remotesubscribe.php
@@ -131,13 +131,15 @@ class RemotesubscribeAction extends Action {
common_debug('remotesubscribe.php - looking for oauth discovery service');
- $oauth_service = $xrds->services(omb_service_filter(OAUTH_DISCOVERY));
+ $oauth_services = $xrds->services(omb_service_filter(OAUTH_DISCOVERY));
- if (!$oauth_service) {
+ if (!$oauth_services) {
common_debug('remotesubscribe.php - failed to find oauth discovery service');
return NULL;
}
+ $oauth_service = $oauth_services[0];
+
common_debug('remotesubscribe.php - looking for oauth discovery XRD');
$xrd = $this->getXRD($oauth_service, $xrds);
@@ -156,13 +158,15 @@ class RemotesubscribeAction extends Action {
common_debug('remotesubscribe.php - looking for OMB discovery service');
- $omb_service = $xrds->services(omb_service_filter(OMB_NAMESPACE));
+ $omb_services = $xrds->services(omb_service_filter(OMB_NAMESPACE));
- if (!$omb_service) {
+ if (!$omb_services) {
common_debug('remotesubscribe.php - failed to find OMB discovery service');
return NULL;
}
+ $omb_service = $omb_services[0];
+
common_debug('remotesubscribe.php - looking for OMB discovery XRD');
$xrd = $this->getXRD($omb_service, $xrds);