Fix ThemeService: use prependLocation instead of addLocation so theme views take priority
This commit is contained in:
1 parent
043854cf3d
commit
3aba997a96
1 file changed
+2
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user