smcvpostcomment: use better names for special comment files

master
Simon McVittie 2008-11-15 14:12:26 +00:00
parent bd8c4674a8
commit 49835784d8
1 changed files with 2 additions and 2 deletions

View File

@ -253,7 +253,7 @@ sub sessioncgi ($$) { #{{{
my $file; my $file;
do { do {
$i++; $i++;
$file = "$page/comment_${i}._" . PLUGIN; $file = "$page/_comment_${i}._" . PLUGIN;
} while (-e "$config{srcdir}/$file"); } while (-e "$config{srcdir}/$file");
# FIXME: could probably do some sort of graceful retry # FIXME: could probably do some sort of graceful retry
@ -287,7 +287,7 @@ sub sessioncgi ($$) { #{{{
error($conflict) if defined $conflict; error($conflict) if defined $conflict;
# Bounce back to where we were, but defeat broken caches # Bounce back to where we were, but defeat broken caches
my $anticache = "?updated=$page/comment_$i"; my $anticache = "?updated=$page/_comment_$i";
IkiWiki::redirect($cgi, urlto($page, undef, 1).$anticache); IkiWiki::redirect($cgi, urlto($page, undef, 1).$anticache);
} }
else { else {