Fix ThemeService: use prependLocation instead of addLocation so theme views take priority

This commit is contained in:
root
2026-06-20 15:30:52 +02:00
parent 043854cf3d
commit 3aba997a96
+2 -2
View File
@@ -19,11 +19,11 @@ class ThemeService
$basePath = config('theme.base_path', base_path('resources/themes'));
if ($parentTheme) {
View::addLocation("{$basePath}/{$parentTheme}/views");
View::prependLocation("{$basePath}/{$parentTheme}/views");
$this->parentTheme = $parentTheme;
}
View::addLocation("{$basePath}/{$theme}/views");
View::prependLocation("{$basePath}/{$theme}/views");
$this->activeTheme = $theme;
$this->registerVendorNamespaces($theme, $basePath);