remove simplepie
This commit is contained in:
parent
b09a4cdccc
commit
fd0daa9b55
|
@ -1,7 +0,0 @@
|
||||||
<?php
|
|
||||||
class SanitizeDummy extends SimplePie_Sanitize {
|
|
||||||
function sanitize($data, $type, $base = '') {
|
|
||||||
return $data;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
|
@ -193,8 +193,6 @@
|
||||||
function update_rss_feed($feed, $ignore_daemon = false, $no_cache = false,
|
function update_rss_feed($feed, $ignore_daemon = false, $no_cache = false,
|
||||||
$override_url = false) {
|
$override_url = false) {
|
||||||
|
|
||||||
require_once "lib/simplepie/simplepie.inc";
|
|
||||||
|
|
||||||
$debug_enabled = defined('DAEMON_EXTENDED_DEBUG') || $_REQUEST['xdebug'];
|
$debug_enabled = defined('DAEMON_EXTENDED_DEBUG') || $_REQUEST['xdebug'];
|
||||||
|
|
||||||
_debug("start", $debug_enabled);
|
_debug("start", $debug_enabled);
|
||||||
|
@ -360,15 +358,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$rss) {
|
if (!$rss) {
|
||||||
/* $rss = new SimplePie();
|
|
||||||
$rss->set_sanitize_class("SanitizeDummy");
|
|
||||||
// simplepie ignores the above and creates default sanitizer anyway,
|
|
||||||
// so let's override it...
|
|
||||||
$rss->sanitize = new SanitizeDummy();
|
|
||||||
$rss->set_output_encoding('UTF-8');
|
|
||||||
$rss->set_raw_data($feed_data);
|
|
||||||
$rss->enable_cache(false); */
|
|
||||||
|
|
||||||
$rss = new FeedParser($feed_data);
|
$rss = new FeedParser($feed_data);
|
||||||
$rss->init();
|
$rss->init();
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue