From: Andrew Dolgov Date: Wed, 20 Jun 2018 19:17:10 +0000 (+0300) Subject: remove old-style readability loading X-Git-Tag: 18.8~16 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=acf155cf8f5a685292955fffca618af6619fcfe0;p=tt-rss.git remove old-style readability loading --- diff --git a/plugins/af_readability/init.php b/plugins/af_readability/init.php index 80723139..48d9c2e3 100755 --- a/plugins/af_readability/init.php +++ b/plugins/af_readability/init.php @@ -142,8 +142,6 @@ class Af_Readability extends Plugin { public function extract_content($url) { global $fetch_effective_url; - if (!class_exists("Readability")) require_once(dirname(dirname(__DIR__)). "/lib/readability/Readability.php"); - $tmp = fetch_file_contents([ "url" => $url, "http_accept" => "text/*", diff --git a/plugins/af_redditimgur/init.php b/plugins/af_redditimgur/init.php index 8a662de2..735db1d6 100755 --- a/plugins/af_redditimgur/init.php +++ b/plugins/af_redditimgur/init.php @@ -557,8 +557,6 @@ class Af_RedditImgur extends Plugin { if (!defined('NO_CURL') && function_exists("curl_init") && $this->host->get($this, "enable_readability") && mb_strlen(strip_tags($article["content"])) <= 150) { - if (!class_exists("Readability")) require_once(dirname(dirname(__DIR__)). "/lib/readability/Readability.php"); - // do not try to embed posts linking back to other reddit posts if ($url && strpos($url, "reddit.com") === FALSE) {