mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-31 08:51:28 +00:00
remove cache_content remnants
This commit is contained in:
@@ -3034,10 +3034,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
if ($cache_content && $line["cached_content"] != "") {
|
||||
$line["content"] =& $line["cached_content"];
|
||||
}
|
||||
|
||||
$rv['content'] .= $line["content"];
|
||||
|
||||
$rv['content'] .= format_article_enclosures($link, $id,
|
||||
|
||||
@@ -1268,27 +1268,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
function cache_content($link, $url, $login, $pass) {
|
||||
|
||||
$content = fetch_file_contents($url, $login, $pass);
|
||||
|
||||
if ($content) {
|
||||
$doc = new DOMDocument();
|
||||
@$doc->loadHTML($content);
|
||||
$xpath = new DOMXPath($doc);
|
||||
|
||||
$node = $doc->getElementsByTagName('body')->item(0);
|
||||
|
||||
if ($node) {
|
||||
$content = $doc->saveXML($node);
|
||||
|
||||
return $content;
|
||||
}
|
||||
}
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
function make_guid_from_title($title) {
|
||||
return preg_replace("/[ \"\',.:;]/", "-",
|
||||
mb_strtolower(strip_tags($title), 'utf-8'));
|
||||
|
||||
Reference in New Issue
Block a user