diff options
author | Andrew Dolgov <[email protected]> | 2017-04-27 00:24:29 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-04-27 00:24:29 +0300 |
commit | 7f4a24f8681f35d25077524692ba2236583cb732 (patch) | |
tree | 41dcc1cc2d3859ad1d8d1fd60b6138c9b520454a /plugins/af_readability/init.php | |
parent | 891df346377be014bbad14c229421d92cfd332ea (diff) | |
parent | c2744831cd319fb967a83dc643bdb8b25f6c0b02 (diff) |
Merge branch 'master' of git.fakecake.org:tt-rss
Diffstat (limited to 'plugins/af_readability/init.php')
-rwxr-xr-x | plugins/af_readability/init.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/af_readability/init.php b/plugins/af_readability/init.php index 9557a9791..fae50a7ea 100755 --- a/plugins/af_readability/init.php +++ b/plugins/af_readability/init.php @@ -128,6 +128,9 @@ class Af_Readability extends Plugin { $this->host->set($this, "enabled_feeds", $enabled_feeds); } + /** + * @SuppressWarnings(PHPMD.UnusedFormalParameter) + */ function hook_article_filter_action($article, $action) { return $this->process_article($article); } @@ -146,7 +149,7 @@ class Af_Readability extends Plugin { curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_USERAGENT, SELF_USER_AGENT); - @$result = curl_exec($ch); + @curl_exec($ch); $content_type = curl_getinfo($ch, CURLINFO_CONTENT_TYPE); if (strpos($content_type, "text/html") === FALSE) @@ -243,4 +246,3 @@ class Af_Readability extends Plugin { } } -?> |