1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-16 04:05:58 +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

@@ -17,7 +17,6 @@ class Af_Habr extends Plugin {
$owner_uid = $article["owner_uid"];
if (strpos($article["link"], "habrahabr.ru") !== FALSE) {
if (strpos($article["plugin_data"], "af_habr,$owner_uid:") === FALSE) {
$doc = new DOMDocument();
@$doc->loadHTML(fetch_file_contents($article["link"]));
@@ -31,12 +30,8 @@ class Af_Habr extends Plugin {
if ($basenode) {
$article["content"] = $doc->saveXML($basenode);
$article["plugin_data"] = "af_habr,$owner_uid:" . $article["plugin_data"];
}
}
} else if (isset($article["stored"]["content"])) {
$article["content"] = $article["stored"]["content"];
}
}
return $article;