diff options
author | Andrew Dolgov <[email protected]> | 2023-12-31 09:08:03 +0000 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2023-12-31 09:08:03 +0000 |
commit | f0f22c23c5986d8f21f82e4a8203a164a5c4aace (patch) | |
tree | cad5cb926791ff5284c7c20ffb5235181df02081 /plugins/af_comics/filters/af_comics_pa.php | |
parent | a882eb13f7ab36f4bab26a290a8e5ab1c6f2fb34 (diff) | |
parent | 90e7bf7cc385a64e3a91f30a6415a598ae0d0e99 (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_pa.php')
-rw-r--r-- | plugins/af_comics/filters/af_comics_pa.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/af_comics/filters/af_comics_pa.php b/plugins/af_comics/filters/af_comics_pa.php index a5a81edcb..f4283be77 100644 --- a/plugins/af_comics/filters/af_comics_pa.php +++ b/plugins/af_comics/filters/af_comics_pa.php @@ -10,7 +10,7 @@ class Af_Comics_Pa extends Af_ComicFilter { $doc = new DOMDocument(); - if ($doc->loadHTML(UrlHelper::fetch($article["link"]))) { + if ($doc->loadHTML(UrlHelper::fetch(['url' => $article['link']]))) { $xpath = new DOMXPath($doc); $basenode = $xpath->query('(//div[@id="comicFrame"])')->item(0); @@ -25,7 +25,7 @@ class Af_Comics_Pa extends Af_ComicFilter { if (strpos($article["link"], "penny-arcade.com") !== false && strpos($article["title"], "News Post:") !== false) { $doc = new DOMDocument(); - $res = UrlHelper::fetch($article["link"]); + $res = UrlHelper::fetch(['url' => $article['link']]); if ($res && $doc->loadHTML($res)) { $xpath = new DOMXPath($doc); |