]> BookStack Code Mirror - bookstack/blobdiff - app/Settings/MaintenanceController.php
respective book and chapter structure added.
[bookstack] / app / Settings / MaintenanceController.php
index 62eeecf39a9ca961ec53c4b18d854190de5ea601..0382ae08a6d18c41b530fbf7c0a9f7cd12eb367b 100644 (file)
@@ -14,7 +14,7 @@ class MaintenanceController extends Controller
     /**
      * Show the page for application maintenance.
      */
-    public function index()
+    public function index(TrashCan $trashCan)
     {
         $this->checkPermission('settings-manage');
         $this->setPageTitle(trans('settings.maint'));
@@ -23,7 +23,7 @@ class MaintenanceController extends Controller
         $version = trim(file_get_contents(base_path('version')));
 
         // Recycle bin details
-        $recycleStats = (new TrashCan())->getTrashedCounts();
+        $recycleStats = $trashCan->getTrashedCounts();
 
         return view('settings.maintenance', [
             'version'      => $version,