1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2024-10-29 23:22:34 +01: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
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9
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,
/*
|--------------------------------------------------------------------------

2
themes/.gitignore vendored Executable file
View File

@ -0,0 +1,2 @@
*
!.gitignore