fix #142
This commit is contained in:
parent
a04271e56d
commit
03b370285f
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,7 @@ return function($page) {
|
||||||
if ($page->template() == "project") {
|
if ($page->template() == "project") {
|
||||||
kirby()->impersonate('kirby');
|
kirby()->impersonate('kirby');
|
||||||
foreach ($page->childrenAndDrafts() as $child) {
|
foreach ($page->childrenAndDrafts() as $child) {
|
||||||
$child->delete();
|
Dir::remove($child->root());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
Loading…
Add table
Add a link
Reference in a new issue