X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Frss.inc.php;h=22a8a2b947ab9a96722345f519ca1d5f25acadb7;hb=52e30b581cddb796b19186139c8c79997f659936;hp=41ede2cf6f900561bfba8b1d85f5b1cb6d0c0b1d;hpb=963c0b2e2125e4ba08348fcf3a13a6eba1204a3e;p=platal.git diff --git a/include/rss.inc.php b/include/rss.inc.php index 41ede2c..22a8a2b 100644 --- a/include/rss.inc.php +++ b/include/rss.inc.php @@ -28,21 +28,11 @@ function _rss_encode_date($d) { return date('r', $t); } -function to_rss ($s) -{ - if(is_string($s)) { - return iconv('ISO_8859-15', 'UTF8', $s); - } else { - return $s; - } -} - function init_rss($template, $alias, $hash, $require_uid = true) { global $page; $page->changeTpl($template, NO_SKIN); $page->register_modifier('rss_date', '_rss_encode_date'); - $page->default_modifiers = Array('@to_rss'); $res = XDB::query( 'SELECT a.id @@ -61,7 +51,7 @@ function init_rss($template, $alias, $hash, $require_uid = true) if ($template) { header('Content-Type: application/rss+xml; charset=utf8'); - } + } return $uid; }