From e1c0576029f2f87b77887fe499c700ca8974ae9b Mon Sep 17 00:00:00 2001 From: joey Date: Sun, 14 Jan 2007 20:14:36 +0000 Subject: * Fix missing categories in rss/atom feeds. --- IkiWiki/Plugin/tag.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'IkiWiki') diff --git a/IkiWiki/Plugin/tag.pm b/IkiWiki/Plugin/tag.pm index ddb67c2a8..29d1d030a 100644 --- a/IkiWiki/Plugin/tag.pm +++ b/IkiWiki/Plugin/tag.pm @@ -63,8 +63,8 @@ sub pagetemplate (@) { #{{{ }, @{$tags{$page}} ]) if exists $tags{$page} && @{$tags{$page}} && $template->query(name => "tags"); - if ($template->query(name => "pubdate")) { - # It's an rss template. Add any categories. + if ($template->query(name => "categories")) { + # It's an rss/atom template. Add any categories. if (exists $tags{$page} && @{$tags{$page}}) { $template->param(categories => [map { category => $_ }, @{$tags{$page}}]); } -- cgit v1.2.3