Fix RSS feed category

This commit is contained in:
danpros 2021-02-18 23:28:44 +07:00
commit 6a3c968c34

View file

@ -2290,11 +2290,8 @@ function generate_rss($posts)
} }
$item = new Item(); $item = new Item();
$cats = explode(',', str_replace(' ', '', strip_tags(remove_accent($p->category)))); $item
foreach ($cats as $cat) { ->category(strip_tags($p->category));
$item
->category($cat, site_url() . 'category/' . strtolower($cat));
}
$item $item
->title($p->title) ->title($p->title)
->pubDate($p->date) ->pubDate($p->date)