]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Debug/Feed.php
Merge pull request #1 from friendica/develop
[friendica.git] / src / Module / Debug / Feed.php
index e969de9cc3889a419bcaf0db3195e6aedfeb9162..4107422094a970c8f9de1e0ffa61f54b88e992a6 100644 (file)
@@ -26,7 +26,6 @@ use Friendica\Core\Renderer;
 use Friendica\DI;
 use Friendica\Model;
 use Friendica\Protocol;
-use Friendica\Util\Network;
 
 /**
  * Tests a given feed of a contact
@@ -36,7 +35,7 @@ class Feed extends BaseModule
        public static function init(array $parameters = [])
        {
                if (!local_user()) {
-                       info(DI::l10n()->t('You must be logged in to use this module'));
+                       notice(DI::l10n()->t('You must be logged in to use this module'));
                        DI::baseUrl()->redirect();
                }
        }
@@ -49,7 +48,7 @@ class Feed extends BaseModule
 
                        $contact = Model\Contact::getByURLForUser($url, local_user(), false);
 
-                       $xml = Network::fetchUrl($contact['poll']);
+                       $xml = DI::httpRequest()->fetch($contact['poll']);
 
                        $import_result = Protocol\Feed::import($xml);