aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/CGI.pm
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-08-14 19:44:59 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-08-14 19:44:59 +0000
commit69065b8e79cce13648db711ed1fefaf6f41713fd (patch)
tree463b4e416ee4d0110207e2f39b05be188ede42a8 /IkiWiki/CGI.pm
parent89dc1d82e3318c8c5b283e4e6aa053fb6ea7c895 (diff)
downloadikiwiki-69065b8e79cce13648db711ed1fefaf6f41713fd.tar
ikiwiki-69065b8e79cce13648db711ed1fefaf6f41713fd.tar.gz
* Fix bug in deletion/move during edit code introduced in 1.44. Need to take
the underlaydir into account.
Diffstat (limited to 'IkiWiki/CGI.pm')
-rw-r--r--IkiWiki/CGI.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm
index 5aa744c94..a073a4edd 100644
--- a/IkiWiki/CGI.pm
+++ b/IkiWiki/CGI.pm
@@ -497,7 +497,8 @@ sub cgi_editpage ($$) { #{{{
else {
# save page
check_canedit($page, $q, $session);
- if (! -e "$config{srcdir}/$file" &&
+ if (! -e "$config{srcdir}/$file" &&
+ ! -e "$config{underlaydir}/$file" &&
$form->field("do") ne "create") {
$form->tmpl_param("page_gone", 1);
$form->field(name => "do", value => "create", force => 1);