]> sipb.mit.edu Git - ikiwiki.git/commitdiff
smcvpostcomment: explain what $fake is for
authorSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>
Sat, 15 Nov 2008 14:13:10 +0000 (14:13 +0000)
committerSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>
Thu, 11 Dec 2008 21:14:01 +0000 (21:14 +0000)
IkiWiki/Plugin/smcvpostcomment.pm

index 367f2d9b3c56a5fcc881c5acf33208c985ddf711..f224944d51f1a21cdf3a02d4677046c7f1e2d710 100644 (file)
@@ -215,6 +215,8 @@ sub sessioncgi ($$) { #{{{
        # - this means that if they do, rocks fall and everyone dies
 
        if ($form->submitted eq PREVIEW) {
        # - this means that if they do, rocks fall and everyone dies
 
        if ($form->submitted eq PREVIEW) {
+               # $fake is a location that has the same number of slashes
+               # as the eventual location of this comment.
                my $fake = "$page/_" . PLUGIN . "hypothetical";
                my $preview = IkiWiki::htmlize($fake, $page, 'mdwn',
                                IkiWiki::linkify($page, $page,
                my $fake = "$page/_" . PLUGIN . "hypothetical";
                my $preview = IkiWiki::htmlize($fake, $page, 'mdwn',
                                IkiWiki::linkify($page, $page,