X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fpubsubhubbub.php;h=bc90c76d66533ca5ec1df66557637c2bf7b6e583;hb=254c32ac91cdfd654e64cdc8ae5aef44ee639212;hp=f376e9e8567663ab555f05e6626dba5cd95fa869;hpb=054c301ef0345c4ff9f35cfd08717757eab17b9d;p=friendica.git diff --git a/mod/pubsubhubbub.php b/mod/pubsubhubbub.php index f376e9e856..bc90c76d66 100644 --- a/mod/pubsubhubbub.php +++ b/mod/pubsubhubbub.php @@ -66,9 +66,9 @@ function pubsubhubbub_init(App $a) { Logger::log("$hub_mode request from " . $_SERVER['REMOTE_ADDR']); - if ($a->argc > 1) { + if (DI::args()->getArgc() > 1) { // Normally the url should now contain the nick name as last part of the url - $nick = $a->argv[1]; + $nick = DI::args()->getArgv()[1]; } else { // Get the nick name from the topic as a fallback $nick = $hub_topic; @@ -125,7 +125,7 @@ function pubsubhubbub_init(App $a) { $hub_callback = rtrim($hub_callback, ' ?&#'); $separator = parse_url($hub_callback, PHP_URL_QUERY) === null ? '?' : '&'; - $fetchResult = DI::httpRequest()->fetchFull($hub_callback . $separator . $params); + $fetchResult = DI::httpClient()->fetchFull($hub_callback . $separator . $params); $body = $fetchResult->getBody(); $ret = $fetchResult->getReturnCode();