aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/CGI.pm
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-08-14 20:11:45 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-08-14 20:11:45 +0000
commitd392f5776afcddc015aabe890ff777a24e5e2f0f (patch)
treefbc04d68152f75ec65843d9f522905aa7dc77afe /IkiWiki/CGI.pm
parentbe3c8133f13bb3860212ce5fc3242767c2e97e28 (diff)
downloadikiwiki-d392f5776afcddc015aabe890ff777a24e5e2f0f.tar
ikiwiki-d392f5776afcddc015aabe890ff777a24e5e2f0f.tar.gz
* Fix bug when editing file from underlaydir, need to rcs_add it even though
a page creation isn't occuring.
Diffstat (limited to 'IkiWiki/CGI.pm')
-rw-r--r--IkiWiki/CGI.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm
index a073a4edd..31b1f748a 100644
--- a/IkiWiki/CGI.pm
+++ b/IkiWiki/CGI.pm
@@ -558,7 +558,7 @@ sub cgi_editpage ($$) { #{{{
$message=$form->field('comments');
}
- if ($form->field("do") eq "create") {
+ if (! -e "$config{srcdir}/$file") {
rcs_add($file);
}