replace windows backslashes by slashes before path mapping (#1107)
Co-authored-by: Andreas Palm <ap@ewsp.de>
This commit is contained in:
parent
1e320835c2
commit
ed146b2c70
@ -55,6 +55,7 @@ class ThemeViewFinder extends \Igaster\LaravelTheme\themeViewFinder
|
||||
$themeSubPaths = [];
|
||||
foreach ($paths as $path) {
|
||||
$pathRelativeToApp = substr($path, strlen(base_path()) + 1);
|
||||
$pathRelativeToApp = str_replace('\\', '/', $pathRelativeToApp);
|
||||
// Ignore paths in composer installed packages (paths inside vendor folder)
|
||||
if (strpos($pathRelativeToApp, 'vendor') !== 0) {
|
||||
// Remap paths definded int $pathsMap array
|
||||
|
Loading…
Reference in New Issue
Block a user