1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-30 04:23:11 +03:00

Added view override support

Relates to #652
This commit is contained in:
Dan Brown
2017-12-31 16:25:58 +00:00
parent 96b8c403a8
commit 6988a6ff88
2 changed files with 8 additions and 3 deletions

View File

@ -1,5 +1,10 @@
<?php
$viewPaths = [realpath(base_path('resources/views'))];
if ($theme = env('APP_THEME', false)) {
array_unshift($viewPaths, base_path('themes/' . $theme));
}
return [
/*
@ -13,9 +18,7 @@ return [
|
*/
'paths' => [
realpath(base_path('resources/views')),
],
'paths' => $viewPaths,
/*
|--------------------------------------------------------------------------