]> sipb.mit.edu Git - ikiwiki.git/commitdiff
smcvpostcomment: use better names for special comment files
authorSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>
Sat, 15 Nov 2008 14:12:26 +0000 (14:12 +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 1255cfde1dcbf32cfda38090a5029e847ff9f6ea..3e3c2ca935fc148bf9032b91a834d61f161cad0b 100644 (file)
@@ -253,7 +253,7 @@ sub sessioncgi ($$) { #{{{
                my $file;
                do {
                        $i++;
-                       $file = "$page/comment_${i}._" . PLUGIN;
+                       $file = "$page/_comment_${i}._" . PLUGIN;
                } while (-e "$config{srcdir}/$file");
 
                # FIXME: could probably do some sort of graceful retry
@@ -287,7 +287,7 @@ sub sessioncgi ($$) { #{{{
                error($conflict) if defined $conflict;
 
                # 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);
        }
        else {