]> BookStack Code Mirror - bookstack/blobdiff - app/App/helpers.php
Themes: Documented public file serving
[bookstack] / app / App / helpers.php
index af6dbcfc39787da06e9d9387685733e932da17b6..941c267d6cd1950c183f65303915996a35917c89 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 
 use BookStack\App\Model;
 <?php
 
 use BookStack\App\Model;
+use BookStack\Facades\Theme;
 use BookStack\Permissions\PermissionApplicator;
 use BookStack\Settings\SettingService;
 use BookStack\Users\Models\User;
 use BookStack\Permissions\PermissionApplicator;
 use BookStack\Settings\SettingService;
 use BookStack\Users\Models\User;
@@ -88,8 +89,7 @@ function setting(string $key = null, $default = null)
  */
 function theme_path(string $path = ''): ?string
 {
  */
 function theme_path(string $path = ''): ?string
 {
-    $theme = config('view.theme');
-
+    $theme = Theme::getTheme();
     if (!$theme) {
         return null;
     }
     if (!$theme) {
         return null;
     }