summaryrefslogtreecommitdiff
path: root/plugins/af_comics/filters/af_comics_comicclass.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2023-12-31 09:08:03 +0000
committerAndrew Dolgov <[email protected]>2023-12-31 09:08:03 +0000
commitf0f22c23c5986d8f21f82e4a8203a164a5c4aace (patch)
treecad5cb926791ff5284c7c20ffb5235181df02081 /plugins/af_comics/filters/af_comics_comicclass.php
parenta882eb13f7ab36f4bab26a290a8e5ab1c6f2fb34 (diff)
parent90e7bf7cc385a64e3a91f30a6415a598ae0d0e99 (diff)
Merge branch 'feature/urlhelper-fetch-do-assoc-opts' into 'master'
Update all UrlHelper::fetch() calls to use the associative array approach. See merge request tt-rss/tt-rss!18
Diffstat (limited to 'plugins/af_comics/filters/af_comics_comicclass.php')
-rw-r--r--plugins/af_comics/filters/af_comics_comicclass.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/af_comics/filters/af_comics_comicclass.php b/plugins/af_comics/filters/af_comics_comicclass.php
index 5e14ea930..6a8811fd4 100644
--- a/plugins/af_comics/filters/af_comics_comicclass.php
+++ b/plugins/af_comics/filters/af_comics_comicclass.php
@@ -11,9 +11,10 @@ class Af_Comics_ComicClass extends Af_ComicFilter {
// lol at people who block clients by user agent
// oh noes my ad revenue Q_Q
- $res = UrlHelper::fetch($article["link"], false, false, false,
- false, false, 0,
- "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)");
+ $res = UrlHelper::fetch([
+ 'url' => $article['link'],
+ 'useragent' => 'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)',
+ ]);
$doc = new DOMDocument();