smcvpostcomment: explain what $fake is for

master
Simon McVittie 2008-11-15 14:13:10 +00:00
parent 42b15f7633
commit 29862a8cc8
1 changed files with 2 additions and 0 deletions

View File

@ -215,6 +215,8 @@ sub sessioncgi ($$) { #{{{
# - this means that if they do, rocks fall and everyone dies # - this means that if they do, rocks fall and everyone dies
if ($form->submitted eq PREVIEW) { 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 $fake = "$page/_" . PLUGIN . "hypothetical";
my $preview = IkiWiki::htmlize($fake, $page, 'mdwn', my $preview = IkiWiki::htmlize($fake, $page, 'mdwn',
IkiWiki::linkify($page, $page, IkiWiki::linkify($page, $page,