]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/ChapterController.php
Added webhook_call_before theme event hook
[bookstack] / app / Http / Controllers / ChapterController.php
index 16f0779cafe7184f4bcd2a58cae72c36fc6cab8f..7541ad0dbd9811d76d17b7036fd631de07c1916f 100644 (file)
@@ -204,7 +204,7 @@ class ChapterController extends Controller
         session()->flashInput(['name' => $chapter->name]);
 
         return view('chapters.copy', [
-            'book' => $chapter->book,
+            'book'    => $chapter->book,
             'chapter' => $chapter,
         ]);
     }
@@ -225,6 +225,7 @@ class ChapterController extends Controller
 
         if (is_null($newParentBook)) {
             $this->showErrorNotification(trans('errors.selected_book_not_found'));
+
             return redirect()->back();
         }