diff options
author | Andrew Dolgov <[email protected]> | 2021-02-28 10:12:57 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-28 10:12:57 +0300 |
commit | afc7142250dc02654a53a7222abe88df964d58f4 (patch) | |
tree | 9c31e51cb00fc8bff550995517acbf19b55b0607 /plugins/af_comics/filters/af_comics_cad.php | |
parent | e2cbb54b2c8f5666a9eabcbf80fb6a3e4d0676a3 (diff) |
move all $fetch globals to UrlHelper
Diffstat (limited to 'plugins/af_comics/filters/af_comics_cad.php')
-rw-r--r-- | plugins/af_comics/filters/af_comics_cad.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/af_comics/filters/af_comics_cad.php b/plugins/af_comics/filters/af_comics_cad.php index 5da82ae3f..0f5bb52fa 100644 --- a/plugins/af_comics/filters/af_comics_cad.php +++ b/plugins/af_comics/filters/af_comics_cad.php @@ -8,17 +8,14 @@ class Af_Comics_Cad extends Af_ComicFilter { function process(&$article) { if (strpos($article["link"], "cad-comic.com") !== false) { if (strpos($article["title"], "News:") === false) { - - global $fetch_last_error_content; - $doc = new DOMDocument(); $res = UrlHelper::fetch($article["link"], false, false, false, false, false, 0, "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"); - if (!$res && $fetch_last_error_content) - $res = $fetch_last_error_content; + if (!$res && UrlHelper::$fetch_last_error_content) + $res = UrlHelper::$fetch_last_error_content; if (@$doc->loadHTML($res)) { $xpath = new DOMXPath($doc); |