From 90b30b2e52a959f9e0ac33025025b7a8b029df48 Mon Sep 17 00:00:00 2001 From: Omar Date: Fri, 21 May 2021 18:28:49 +0200 Subject: [PATCH] Issue #328: use DIRECTORY_SEPARATOR instead of linux slash --- .../src/Plugin/UiPatterns/Pattern/LibraryPattern.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ui_patterns_library/src/Plugin/UiPatterns/Pattern/LibraryPattern.php b/modules/ui_patterns_library/src/Plugin/UiPatterns/Pattern/LibraryPattern.php index 79d9f667..f2c8102d 100644 --- a/modules/ui_patterns_library/src/Plugin/UiPatterns/Pattern/LibraryPattern.php +++ b/modules/ui_patterns_library/src/Plugin/UiPatterns/Pattern/LibraryPattern.php @@ -78,7 +78,7 @@ protected function processCustomThemeHookProperty(PatternDefinition $definition) $module = $this->moduleHandler->getModule($definition->getProvider()); $return['path'] = $module->getPath() . '/templates'; if ($this->templateExists($definition->getBasePath(), $definition->getTemplate())) { - $return['path'] = str_replace($this->root . '/', '', $definition->getBasePath()); + $return['path'] = str_replace($this->root . DIRECTORY_SEPARATOR, '', $definition->getBasePath()); } } return $return;