]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
OStatus: fix exception thrown on HTTP error during feed discovery
authorBrion Vibber <brion@pobox.com>
Tue, 9 Mar 2010 18:56:33 +0000 (10:56 -0800)
committerBrion Vibber <brion@pobox.com>
Tue, 9 Mar 2010 18:56:33 +0000 (10:56 -0800)
plugins/OStatus/lib/feeddiscovery.php

index 7afb71bdc16044ad8ec763e64f2b2d442df5a0ae..ff76b229e76923030f0d56242bb4467024b93dbf 100644 (file)
@@ -129,7 +129,7 @@ class FeedDiscovery
     function initFromResponse($response)
     {
         if (!$response->isOk()) {
-            throw new FeedSubBadResponseException($response->getCode());
+            throw new FeedSubBadResponseException($response->getStatus());
         }
 
         $sourceurl = $response->getUrl();