diff options
Diffstat (limited to 'plugins/af_comics/filters/af_comics_darklegacy.php')
-rw-r--r-- | plugins/af_comics/filters/af_comics_darklegacy.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/af_comics/filters/af_comics_darklegacy.php b/plugins/af_comics/filters/af_comics_darklegacy.php index d1f6016cb..7cdc48e25 100644 --- a/plugins/af_comics/filters/af_comics_darklegacy.php +++ b/plugins/af_comics/filters/af_comics_darklegacy.php @@ -8,10 +8,10 @@ class Af_Comics_DarkLegacy extends Af_ComicFilter { function process(&$article) { if (strpos($article["guid"], "darklegacycomics.com") !== false) { - - $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)', + ]); if (!$res && UrlHelper::$fetch_last_error_content) $res = UrlHelper::$fetch_last_error_content; |