From 490201c75c8bfa5d684b50778f614d60db05e6c0 Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 20 Mar 2006 05:48:40 +0000 Subject: [PATCH] tag support in rss --- blog/class.BlogFilter.php | 2 +- blog/lib.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/blog/class.BlogFilter.php b/blog/class.BlogFilter.php index cfd02ab171..f715f799b5 100755 --- a/blog/class.BlogFilter.php +++ b/blog/class.BlogFilter.php @@ -85,7 +85,7 @@ class BlogFilter { $this->tag = $tagid; } else if ($tag) { if ($tagrec = get_record_sql('SELECT * FROM '.$CFG->prefix.'tags WHERE text LIKE "'.$tag.'"')) { - $this->tag = $tagrec -> id; + $this->tag = $tagrec->id; } else { $this->tag = -1; //no record found } diff --git a/blog/lib.php b/blog/lib.php index 42e0d57c50..02691a735d 100755 --- a/blog/lib.php +++ b/blog/lib.php @@ -168,7 +168,7 @@ function blog_print_html_formatted_entries(&$blogFilter, $filtertype, $filtersel // show page next/previous links if applicable print_paging_bar($blogFilter->get_viewable_entry_count(), $blogpage, $bloglimit, $blogFilter->baseurl, 'blogpage'); - blog_rss_print_link($filtertype, $filterselect); + blog_rss_print_link($filtertype, $filterselect, $blogFilter->tag); print ''; if (blog_isLoggedIn()) { -- 2.39.5