1
0
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:
Andrew Dolgov
2013-03-16 16:11:58 +04:00
parent cc38c8e549
commit 8349a32e75
4 changed files with 2 additions and 40 deletions

View File

@@ -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'));