mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-22 06:35:44 +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
|
// Get application version
|
||||||
$version = trim(file_get_contents(base_path('version')));
|
$version = trim(file_get_contents(base_path('version')));
|
||||||
|
|
||||||
return view('settings.' . $category, [
|
return view('settings.categories.' . $category, [
|
||||||
'category' => $category,
|
'category' => $category,
|
||||||
'version' => $version,
|
'version' => $version,
|
||||||
'guestUser' => User::getGuest(),
|
'guestUser' => User::getGuest(),
|
||||||
|
@ -57,7 +57,7 @@ class SettingController extends Controller
|
||||||
|
|
||||||
protected function ensureCategoryExists(string $category): void
|
protected function ensureCategoryExists(string $category): void
|
||||||
{
|
{
|
||||||
if (!view()->exists('settings.' . $category)) {
|
if (!view()->exists('settings.categories.' . $category)) {
|
||||||
abort(404, 'Category not found');
|
abort(404, 'Category not found');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user