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_readability/init.php | |
parent | e2cbb54b2c8f5666a9eabcbf80fb6a3e4d0676a3 (diff) |
move all $fetch globals to UrlHelper
Diffstat (limited to 'plugins/af_readability/init.php')
-rwxr-xr-x | plugins/af_readability/init.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/af_readability/init.php b/plugins/af_readability/init.php index 172006d34..f8c7c125c 100755 --- a/plugins/af_readability/init.php +++ b/plugins/af_readability/init.php @@ -190,8 +190,6 @@ class Af_Readability extends Plugin { public function extract_content($url) { - global $fetch_effective_url; - $tmp = UrlHelper::fetch([ "url" => $url, "http_accept" => "text/*", @@ -224,13 +222,13 @@ class Af_Readability extends Plugin { foreach ($entries as $entry) { if ($entry->hasAttribute("href")) { $entry->setAttribute("href", - rewrite_relative_url($fetch_effective_url, $entry->getAttribute("href"))); + rewrite_relative_url(UrlHelper::$fetch_effective_url, $entry->getAttribute("href"))); } if ($entry->hasAttribute("src")) { $entry->setAttribute("src", - rewrite_relative_url($fetch_effective_url, $entry->getAttribute("src"))); + rewrite_relative_url(UrlHelper::$fetch_effective_url, $entry->getAttribute("src"))); } } |