From 6a3c968c34fe420518b7aed628baed132439a70a Mon Sep 17 00:00:00 2001 From: danpros Date: Thu, 18 Feb 2021 23:28:44 +0700 Subject: [PATCH] Fix RSS feed category --- system/includes/functions.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/system/includes/functions.php b/system/includes/functions.php index 27f3748..abe444b 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -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)