<?php
use BookStack\App\Model;
+use BookStack\Facades\Theme;
use BookStack\Permissions\PermissionApplicator;
use BookStack\Settings\SettingService;
use BookStack\Users\Models\User;
*/
function theme_path(string $path = ''): ?string
{
- $theme = config('view.theme');
-
+ $theme = Theme::getTheme();
if (!$theme) {
return null;
}