mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 22:55:55 +00:00
af_fsckportal: remove unused variables
This commit is contained in:
@@ -32,8 +32,6 @@ class Af_Fsckportal extends Plugin {
|
|||||||
$xpath = new DOMXPath($doc);
|
$xpath = new DOMXPath($doc);
|
||||||
$entries = $xpath->query('(//img[@src]|//a[@href])');
|
$entries = $xpath->query('(//img[@src]|//a[@href])');
|
||||||
|
|
||||||
$matches = array();
|
|
||||||
|
|
||||||
foreach ($entries as $entry) {
|
foreach ($entries as $entry) {
|
||||||
if (preg_match("/feedsportal.com/", $entry->getAttribute("src"))) {
|
if (preg_match("/feedsportal.com/", $entry->getAttribute("src"))) {
|
||||||
$entry->parentNode->removeChild($entry);
|
$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"];
|
$article["plugin_data"] = "fsckportal,$owner_uid:" . $article["plugin_data"];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user