From: Andrew Dolgov Date: Fri, 8 Aug 2014 07:34:13 +0000 (+0400) Subject: af_fsckportal: remove unused variables X-Git-Tag: 1.14~42 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=3263c9ccee799969a4a4322cd359553bb54b76ce;p=tt-rss.git af_fsckportal: remove unused variables --- diff --git a/plugins/af_fsckportal/init.php b/plugins/af_fsckportal/init.php index 4795fd8e..4a549027 100644 --- a/plugins/af_fsckportal/init.php +++ b/plugins/af_fsckportal/init.php @@ -32,8 +32,6 @@ class Af_Fsckportal extends Plugin { $xpath = new DOMXPath($doc); $entries = $xpath->query('(//img[@src]|//a[@href])'); - $matches = array(); - foreach ($entries as $entry) { if (preg_match("/feedsportal.com/", $entry->getAttribute("src"))) { $entry->parentNode->removeChild($entry); @@ -42,7 +40,7 @@ class Af_Fsckportal extends Plugin { } } - $article["content"] = $doc->saveXML($basenode); + $article["content"] = $doc->saveXML(); $article["plugin_data"] = "fsckportal,$owner_uid:" . $article["plugin_data"]; }