mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 10:05:58 +00:00
remove cache_content remnants
This commit is contained in:
@@ -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