mirror of
https://github.com/danpros/htmly.git
synced 2026-04-21 04:56:23 +05:30
Fix RSS feed category
This commit is contained in:
parent
495c7ad9c8
commit
6a3c968c34
1 changed files with 2 additions and 5 deletions
|
|
@ -2290,11 +2290,8 @@ function generate_rss($posts)
|
|||
}
|
||||
|
||||
$item = new Item();
|
||||
$cats = explode(',', str_replace(' ', '', strip_tags(remove_accent($p->category))));
|
||||
foreach ($cats as $cat) {
|
||||
$item
|
||||
->category($cat, site_url() . 'category/' . strtolower($cat));
|
||||
}
|
||||
$item
|
||||
->category(strip_tags($p->category));
|
||||
$item
|
||||
->title($p->title)
|
||||
->pubDate($p->date)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue