]> git.mjollnir.org Git - moodle.git/commitdiff
tag support in rss
authormoodler <moodler>
Mon, 20 Mar 2006 05:48:40 +0000 (05:48 +0000)
committermoodler <moodler>
Mon, 20 Mar 2006 05:48:40 +0000 (05:48 +0000)
blog/class.BlogFilter.php
blog/lib.php

index cfd02ab171c1ca3a3a2d48ed9cc2c96f78d92d57..f715f799b50411d10f4366d57c32e8be07a19848 100755 (executable)
@@ -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
             }
index 42e0d57c5008bcf8229347b297679a13ef583648..02691a735d4888c530b062a69190aa4070372477 100755 (executable)
@@ -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 '</div>';
 
     if (blog_isLoggedIn()) {