We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6886058 + 6d3b706 commit 8388216Copy full SHA for 8388216
src/Themes.php
@@ -77,9 +77,12 @@ public function set($themeName){
77
// All paths are relative to Config::get('theme.theme_path')
78
$paths = [];
79
do {
80
- // $path = $this->defaultViewsPath[0];
81
- $path = $this->themesPath;
82
- $path .= empty($theme->viewsPath) ? '' : '/'.$theme->viewsPath;
+ if(substr($theme->viewsPath, 0, 1) === DIRECTORY_SEPARATOR){
+ $path = base_path(substr($theme->viewsPath, 1));
+ } else {
83
+ $path = $this->themesPath;
84
+ $path .= empty($theme->viewsPath) ? '' : DIRECTORY_SEPARATOR . $theme->viewsPath;
85
+ }
86
if(!in_array($path, $paths))
87
$paths[] = $path;
88
} while ($theme = $theme->getParent());
0 commit comments