1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-27 06:01:54 +03:00

Updated tests to suit layout changes, Updated 404 page

- Also replaced 'or' usage in templates with null coalescing operator
This commit is contained in:
Dan Brown
2019-04-06 18:36:17 +01:00
parent 67ed4710b6
commit 7cda9b026e
14 changed files with 72 additions and 78 deletions

View File

@ -123,7 +123,7 @@ class HomeController extends Controller
*/
public function customHeadContent()
{
return view('partials/custom-head-content');
return view('partials.custom-head-content');
}
/**
@ -138,7 +138,7 @@ class HomeController extends Controller
$allowRobots = $sitePublic;
}
return response()
->view('common/robots', ['allowRobots' => $allowRobots])
->view('common.robots', ['allowRobots' => $allowRobots])
->header('Content-Type', 'text/plain');
}
@ -147,6 +147,6 @@ class HomeController extends Controller
*/
public function getNotFound()
{
return response()->view('errors/404', [], 404);
return response()->view('errors.404', [], 404);
}
}