Update all UrlHelper::fetch() calls to use the associative array approach.

The other approach (passing in individual params) was marked as deprecated a few years ago.
This commit is contained in:
wn_
2023-12-30 15:38:41 +00:00
parent a882eb13f7
commit 90e7bf7cc3
13 changed files with 39 additions and 36 deletions

View File

@@ -1145,7 +1145,7 @@ class Feeds extends Handler_Protected {
},
$url, $auth_login, $auth_pass);
$contents = UrlHelper::fetch($url, false, $auth_login, $auth_pass);
$contents = UrlHelper::fetch(['url' => $url, 'login' => $auth_login, 'pass' => $auth_pass]);
PluginHost::getInstance()->chain_hooks_callback(PluginHost::HOOK_SUBSCRIBE_FEED,
function ($result) use (&$contents) {