mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-24 11:15:05 +08:00
Move settings category layouts into their own view folder
This commit is contained in:
parent
b9b5003239
commit
a3d0f7478f
|
@ -29,7 +29,7 @@ class SettingController extends Controller
|
|||
// Get application version
|
||||
$version = trim(file_get_contents(base_path('version')));
|
||||
|
||||
return view('settings.' . $category, [
|
||||
return view('settings.categories.' . $category, [
|
||||
'category' => $category,
|
||||
'version' => $version,
|
||||
'guestUser' => User::getGuest(),
|
||||
|
@ -57,7 +57,7 @@ class SettingController extends Controller
|
|||
|
||||
protected function ensureCategoryExists(string $category): void
|
||||
{
|
||||
if (!view()->exists('settings.' . $category)) {
|
||||
if (!view()->exists('settings.categories.' . $category)) {
|
||||
abort(404, 'Category not found');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user