You've already forked Atomcms-edit
Fix ThemeService: use prependLocation instead of addLocation so theme views take priority
This commit is contained in:
@@ -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