mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-08-07 23:03:00 +03:00
Queries: Updated all app book static query uses
This commit is contained in:
@@ -116,9 +116,9 @@ class RecycleBinController extends Controller
|
||||
*
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function empty()
|
||||
public function empty(TrashCan $trash)
|
||||
{
|
||||
$deleteCount = (new TrashCan())->empty();
|
||||
$deleteCount = $trash->empty();
|
||||
|
||||
$this->logActivity(ActivityType::RECYCLE_BIN_EMPTY);
|
||||
$this->showSuccessNotification(trans('settings.recycle_bin_destroy_notification', ['count' => $deleteCount]));
|
||||
|
Reference in New Issue
Block a user