1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-01-08 20:39:16 +00:00

plugins: remove obsolete plugin_data/stored stuff

This commit is contained in:
Andrew Dolgov
2014-08-18 18:41:19 +04:00
parent b1840673cd
commit 129d626354
14 changed files with 2 additions and 86 deletions

View File

@@ -19,7 +19,6 @@ class Af_SciAm extends Plugin {
$owner_uid = $article["owner_uid"];
if (strpos($article["link"], "scientificamerican.com") !== FALSE || strpos($article["link"], "rss.sciam.com") !== FALSE) {
if (strpos($article["plugin_data"], "sciam,$owner_uid:") === FALSE) {
$doc = new DOMDocument();
@$doc->loadHTML(fetch_file_contents($article["link"]));
@@ -33,12 +32,8 @@ class Af_SciAm extends Plugin {
if ($basenode) {
$article["content"] = $doc->saveXML($basenode);
$article["plugin_data"] = "sciam,$owner_uid:" . $article["plugin_data"];
}
}
} else if (isset($article["stored"]["content"])) {
$article["content"] = $article["stored"]["content"];
}
}
return $article;