Skip to content

Commit

Permalink
Update installed version
Browse files Browse the repository at this point in the history
  • Loading branch information
danpros committed Aug 20, 2015
1 parent c4f424a commit 9debdae
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion cache/installedVersion.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"id": 782014,
"tag_name": "v2.6.0"
"tag_name": "v2.6.1"
}
2 changes: 1 addition & 1 deletion system/admin/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down
14 changes: 7 additions & 7 deletions system/includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}

Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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 '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">';
Expand Down

0 comments on commit 9debdae

Please sign in to comment.