From f5851178d4128da00744ba8d269b39012558b477 Mon Sep 17 00:00:00 2001 From: Danang Probo Sayekti Date: Wed, 22 Jan 2014 23:09:58 +0700 Subject: [PATCH] Fix breadcrumb. Fix breadcrumb. --- system/includes/functions.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/system/includes/functions.php b/system/includes/functions.php index 4dbf98e..1aed605 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -132,6 +132,7 @@ function get_posts($posts, $page = 1, $perpage = 0){ $tag = array(); $url = array(); + $bc = array(); $t = explode(',', $arr[1]); foreach($t as $tt) { @@ -139,12 +140,13 @@ function get_posts($posts, $page = 1, $perpage = 0){ } foreach($tag as $a) { - $url[] = ''. $a[0] .''; + $url[] = ''. $a[0] .''; + $bc[] = ''. $a[0] .''; } $post->tag = implode(', ', $url); - $post->tagb = implode(' » ', $url); + $post->tagb = implode(' » ', $bc); // Get the contents and convert it to HTML $content = MarkdownExtra::defaultTransform(file_get_contents($filepath)); @@ -407,6 +409,7 @@ function get_keyword($keyword){ $tag = array(); $url = array(); + $bc = array(); $t = explode(',', $arr[1]); foreach($t as $tt) { @@ -414,12 +417,13 @@ function get_keyword($keyword){ } foreach($tag as $a) { - $url[] = ''. $a[0] .''; + $url[] = ''. $a[0] .''; + $bc[] = ''. $a[0] .''; } $post->tag = implode(', ', $url); - $post->tagb = implode(' » ', $url); + $post->tagb = implode(' » ', $bc); // Extract the title and body $arr = explode('', $content);