]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Repos/BookshelfRepo.php
LDAP: Added TLS support
[bookstack] / app / Entities / Repos / BookshelfRepo.php
index ba687c6f6e754f3a49959ad932294620cb3e74c8..49fb75f4cfebd47d3cd70701c45a8061027ee009 100644 (file)
@@ -174,6 +174,7 @@ class BookshelfRepo
     public function destroy(Bookshelf $shelf)
     {
         $trashCan = new TrashCan();
-        $trashCan->destroyShelf($shelf);
+        $trashCan->softDestroyShelf($shelf);
+        $trashCan->autoClearOld();
     }
 }