diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-03-29 18:35:04 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-03-29 18:35:04 +0000 |
commit | 2a16e15122574cca9c5b52ccfc46a022a71e25dc (patch) | |
tree | 7e2fdecb047317e1e8c826029627ae0b97bf7e81 /IkiWiki | |
parent | 7c9aa23b44a20730026d611bc1d5de62ca265768 (diff) |
fix for replacing from underlay
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/CGI.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm index 6fd1f6506..b47c8e803 100644 --- a/IkiWiki/CGI.pm +++ b/IkiWiki/CGI.pm @@ -308,10 +308,12 @@ sub cgi_editpage ($$) { #{{{ $page=lc($page); my $file=$page.$config{default_pageext}; - my $newfile=1; if (exists $pagesources{lc($page)}) { $file=$pagesources{lc($page)}; - $newfile=0; + } + my $newfile=0; + if (! -e "$config{srcdir}/$file") { + $newfile=1; } $form->field(name => "do", type => 'hidden'); |