fixes
authorJoey Hess <joey@kitenet.net>
Thu, 22 Apr 2010 00:08:23 +0000 (20:08 -0400)
committerJoey Hess <joey@kitenet.net>
Thu, 22 Apr 2010 00:08:23 +0000 (20:08 -0400)
IkiWiki/Plugin/tag.pm

index dd7583ab29477b8f4ed400dc2b8496c4617f11f3..a7f37a5122b30da2a8716200093a98ef3aa6f189 100644 (file)
@@ -79,12 +79,12 @@ sub gentag ($) {
                my $tagfile = newpagefile($tagpage, $config{default_pageext});
 
                add_autofile($tagfile, "tag", sub {
-                       my $message=sprintf(gettext("creating tag page %s"), $tag);
+                       my $message=sprintf(gettext("creating tag page %s"), $tagpage);
                        debug($message);
 
                        my $template=template("autotag.tmpl");
-                       $template->param(tag => IkiWiki::basename($tag));
-                       $template->param(tagpage => $tagpage);
+                       $template->param(tagname => IkiWiki::basename($tag));
+                       $template->param(tag => $tag);
                        writefile($tagfile, $config{srcdir}, $template->output);
                        if ($config{rcs}) {
                                IkiWiki::disable_commit_hook();