From 9debdaec1fea7fd3984b7c6bd22f4505debfa821 Mon Sep 17 00:00:00 2001 From: Danang Probo Sayekti Date: Thu, 20 Aug 2015 22:28:13 +0700 Subject: [PATCH] Update installed version --- cache/installedVersion.json | 2 +- system/admin/admin.php | 2 +- system/includes/functions.php | 14 +++++++------- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/cache/installedVersion.json b/cache/installedVersion.json index eea4d1f2..5f69bf4a 100644 --- a/cache/installedVersion.json +++ b/cache/installedVersion.json @@ -1,4 +1,4 @@ { "id": 782014, - "tag_name": "v2.6.0" + "tag_name": "v2.6.1" } diff --git a/system/admin/admin.php b/system/admin/admin.php index 8b8804f7..285a6f3d 100644 --- a/system/admin/admin.php +++ b/system/admin/admin.php @@ -1481,7 +1481,7 @@ function get_feed($feed_url, $credit) $time = new DateTime($entry->pubDate); $timestamp = $time->format("Y-m-d H:i:s"); $time = strtotime($timestamp); - $tags = strip_tags(preg_replace(array('/[^a-zA-Z0-9,.\-\p{L}]/u', '/[ -]+/', '/^-|-$/'), array('', '-', ''), remove_accent($entry->category))); + $tags = $entry->category; $title = rtrim($entry->title, ' \,\.\-'); $title = ltrim($title, ' \,\.\-'); $user = $_SESSION[config("site.url")]['user']; diff --git a/system/includes/functions.php b/system/includes/functions.php index ca6a9799..ac4095c4 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -267,14 +267,14 @@ function get_posts($posts, $page = 1, $perpage = 0) $tCom = array_combine($t, $tl); foreach ($tCom as $key => $val) { if(!empty($val)) { - $tag[] = array($val, site_url() . 'tag/' . $key); + $tag[] = array($val, site_url() . 'tag/' . strtolower($key)); } else { - $tag[] = array($key, site_url() . 'tag/' . $key); + $tag[] = array($key, site_url() . 'tag/' . strtolower($key)); } } } else { foreach ($t as $tt) { - $tag[] = array($tt, site_url() . 'tag/' . $tt); + $tag[] = array($tt, site_url() . 'tag/' . strtolower($tt)); } } @@ -1577,10 +1577,10 @@ function generate_rss($posts) } $item = new Item(); - $tags = explode(',', str_replace(' ', '', strip_tags($p->tag))); + $tags = explode(',', str_replace(' ', '', strip_tags(remove_accent($p->tag)))); foreach ($tags as $tag) { $item - ->category($tag, site_url() . 'tag/' . $tag); + ->category(tag_i18n($tag), site_url() . 'tag/' . strtolower($tag)); } $item ->title($p->title) @@ -1735,12 +1735,12 @@ function generate_sitemap($str) $data = $arr[1]; $mtag = explode(',', $data); foreach ($mtag as $etag) { - $tags[] = $etag; + $tags[] = strtolower($etag); } } foreach ($tags as $t) { - $tag[] = site_url() . 'tag/' . $t; + $tag[] = site_url() . 'tag/' . strtolower($t); } echo '';