diff options
Diffstat (limited to 'plugins/af_readability/init.php')
| -rwxr-xr-x | plugins/af_readability/init.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/af_readability/init.php b/plugins/af_readability/init.php index 9c62a4772..111462c4b 100755 --- a/plugins/af_readability/init.php +++ b/plugins/af_readability/init.php @@ -133,7 +133,7 @@ class Af_Readability extends Plugin { if (!is_array($enabled_feeds)) $enabled_feeds = array(); $key = array_search($feed_id, $enabled_feeds); - $checked = $key !== FALSE ? "checked" : ""; + $checked = $key !== false ? "checked" : ""; print "<fieldset>"; @@ -153,11 +153,11 @@ class Af_Readability extends Plugin { $key = array_search($feed_id, $enabled_feeds); if ($enable) { - if ($key === FALSE) { + if ($key === false) { array_push($enabled_feeds, $feed_id); } } else { - if ($key !== FALSE) { + if ($key !== false) { unset($enabled_feeds[$key]); } } @@ -176,7 +176,7 @@ class Af_Readability extends Plugin { global $fetch_effective_url; - $tmp = fetch_file_contents([ + $tmp = UrlHelper::fetch([ "url" => $url, "http_accept" => "text/*", "type" => "text/html"]); @@ -235,7 +235,7 @@ class Af_Readability extends Plugin { $extracted_content = $this->extract_content($article["link"]); # let's see if there's anything of value in there - $content_test = trim(strip_tags(sanitize($extracted_content))); + $content_test = trim(strip_tags(Sanitizer::sanitize($extracted_content))); if ($content_test) { $article["content"] = $extracted_content; @@ -250,7 +250,7 @@ class Af_Readability extends Plugin { if (!is_array($enabled_feeds)) return $article; $key = array_search($article["feed"]["id"], $enabled_feeds); - if ($key === FALSE) return $article; + if ($key === false) return $article; return $this->process_article($article); @@ -264,7 +264,7 @@ class Af_Readability extends Plugin { $extracted_content = $this->extract_content($link); # let's see if there's anything of value in there - $content_test = trim(strip_tags(sanitize($extracted_content))); + $content_test = trim(strip_tags(Sanitizer::sanitize($extracted_content))); if ($content_test) { return $extracted_content; @@ -303,7 +303,7 @@ class Af_Readability extends Plugin { $ret = []; if ($row = $sth->fetch()) { - $ret["content"] = sanitize($this->extract_content($row["link"])); + $ret["content"] = Sanitizer::sanitize($this->extract_content($row["link"])); } print json_encode($ret); |