OSDN Git Service
(root)
/
fswiki
/
fswiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8beae59
)
BugTrack-wiki/349 : 削除ページ完全削除で添付ファイル削除対応
author
kgsoft
<kgsoft@users.osdn.me>
Tue, 5 Dec 2017 05:47:12 +0000
(
05:47
+0000)
committer
kgsoft
<kgsoft@users.osdn.me>
Tue, 5 Dec 2017 05:47:12 +0000
(
05:47
+0000)
plugin/admin/AdminDeletedPageHandler.pm
patch
|
blob
|
history
diff --git
a/plugin/admin/AdminDeletedPageHandler.pm
b/plugin/admin/AdminDeletedPageHandler.pm
index
a74d8da
..
24d7856
100644
(file)
--- a/
plugin/admin/AdminDeletedPageHandler.pm
+++ b/
plugin/admin/AdminDeletedPageHandler.pm
@@
-111,6
+111,10
@@
sub forget {
foreach my $backup_file (@backup_files){
unlink($backup_file);
}
+ my @attach_files = glob(&Util::make_filename($wiki->config('attach_dir'), &Util::url_encode($selected_page), "*"));
+ foreach my $attach_file (@attach_files){
+ unlink($attach_file);
+ }
}
}