From 0c6ed0356ceecbaffa8f3e200945a9051bc14641 Mon Sep 17 00:00:00 2001 From: Alexander Bartsch Date: Wed, 17 Aug 2016 13:50:50 +0200 Subject: [PATCH] Use DIRECTORY_SEPERATOR for getStyleguideKitPath Replace directory seperator in string system specific DIRECTORY_SEPERATOR --- src/PatternLab/Config.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/PatternLab/Config.php b/src/PatternLab/Config.php index b07e90e3..6ec652a8 100644 --- a/src/PatternLab/Config.php +++ b/src/PatternLab/Config.php @@ -82,6 +82,11 @@ public static function getOptions() { */ protected static function getStyleguideKitPath($styleguideKitPath = "") { + // Replace directory seperator in string system specific DIRECTORY_SEPERATOR + if (isset($styleguideKitPath[0])) { + $styleguideKitPath = str_replace(['/', '\\'], DIRECTORY_SEPARATOR, $styleguideKitPath); + } + $styleguideKitPathFinal = ""; if (isset($styleguideKitPath[0]) && ($styleguideKitPath[0] == DIRECTORY_SEPARATOR)) { if (strpos($styleguideKitPath, DIRECTORY_SEPARATOR."vendor".DIRECTORY_SEPARATOR === 0)) {