summaryrefslogtreecommitdiff
path: root/plugins/af_readability/init.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-28 10:12:57 +0300
committerAndrew Dolgov <[email protected]>2021-02-28 10:12:57 +0300
commitafc7142250dc02654a53a7222abe88df964d58f4 (patch)
tree9c31e51cb00fc8bff550995517acbf19b55b0607 /plugins/af_readability/init.php
parente2cbb54b2c8f5666a9eabcbf80fb6a3e4d0676a3 (diff)
move all $fetch globals to UrlHelper
Diffstat (limited to 'plugins/af_readability/init.php')
-rwxr-xr-xplugins/af_readability/init.php6
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")));
}
}