link websub on status page
[phinde.git] / src / phinde / HubUrlExtractor.php
index b33abfe04deca6a3c1d8a380d285fc2d6017993c..81a612cf31d0ef6499e15b48e47293720e46f0b5 100644 (file)
@@ -77,7 +77,7 @@ class HubUrlExtractor
             $tagQuery = '/atom:feed/atom:link[';
 
         } else if ($type === 'application/rss+xml') {
-            $tagQuery = '/rss/channel/link[';
+            $tagQuery = '/rss/channel/*[(self::link or self::atom:link) and ';
 
         } else {
             $tagQuery = '/*[self::html or self::h:html]'
@@ -196,8 +196,7 @@ class HubUrlExtractor
     public function getRequest()
     {
         if ($this->request === null) {
-            $request = new \HTTP_Request2();
-            $request->setConfig('follow_redirects', true);
+            $request = new HttpRequest();
             $this->setRequestTemplate($request);
         }