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