comments: linkify and preprocess preview with correct 'page' param
authorSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>
Sun, 21 Dec 2008 15:07:36 +0000 (15:07 +0000)
committerSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>
Sun, 21 Dec 2008 15:07:36 +0000 (15:07 +0000)
IkiWiki/Plugin/comments.pm

index 644ef1be8ceec33a7185ff8dd3492962bdabe9d6..34bbafeed7f521d5a2cae6bd5301da7ae4dee99f 100644 (file)
@@ -432,8 +432,8 @@ sub sessioncgi ($$) {
 
        if ($form->submitted eq PREVIEW) {
                my $preview = IkiWiki::htmlize($location, $page, '_comment',
-                               IkiWiki::linkify($page, $page,
-                                       IkiWiki::preprocess($page, $page,
+                               IkiWiki::linkify($location, $page,
+                                       IkiWiki::preprocess($location, $page,
                                                IkiWiki::filter($location,
                                                        $page, $content),
                                                0, 1)));