Photos
Blog
Projects
vanrenterghem.biz
projects
/
git.ikiwiki.info.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added a comment
[git.ikiwiki.info.git]
/
IkiWiki
/
Plugin
/
remove.pm
diff --git
a/IkiWiki/Plugin/remove.pm
b/IkiWiki/Plugin/remove.pm
index 4b527993ba96b2c26095352cc613d935eee8416c..bc481502a7dc8ecaa179e781d4a2c4dc3348d7b2 100644
(file)
--- a/
IkiWiki/Plugin/remove.pm
+++ b/
IkiWiki/Plugin/remove.pm
@@
-71,6
+71,7
@@
sub check_canremove ($$$) {
}
}
});
}
}
});
+ return defined $canremove ? $canremove : 1;
}
sub formbuilder_setup (@) {
}
sub formbuilder_setup (@) {
@@
-99,7
+100,7
@@
sub confirmation_form ($$) {
method => 'POST',
javascript => 0,
params => $q,
method => 'POST',
javascript => 0,
params => $q,
- action =>
$config{cgiurl}
,
+ action =>
IkiWiki::cgiurl()
,
stylesheet => 1,
fields => [qw{do page}],
);
stylesheet => 1,
fields => [qw{do page}],
);
@@
-239,7
+240,7
@@
sub sessioncgi ($$) {
if (! exists $pagesources{$parent}) {
$parent="index";
}
if (! exists $pagesources{$parent}) {
$parent="index";
}
- IkiWiki::redirect($q, urlto($parent
, '/', 1
));
+ IkiWiki::redirect($q, urlto($parent));
}
}
else {
}
}
else {