Skip to content

Commit a5a6bb2

Browse files
committed
removing styleguideKitPath from the default list
1 parent e3bc707 commit a5a6bb2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

config/config.yml.default

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,3 @@ cacheBusterOn: "true"
3737
exportDir: "export"
3838
publicDir: "public"
3939
sourceDir: "source"
40-
styleguideKitPath: ""

src/PatternLab/Config.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,9 @@ public static function init($baseDir = "", $verbose = true) {
214214
self::$options["patternSourceDir"] = self::$options["sourceDir"]."/_patterns";
215215

216216
// handle a pre-2.1.0 styleguideKitPath before saving it
217-
self::$options["styleguideKitPath"] = self::$options["baseDir"].self::cleanDir(self::getStyleguideKitPath(self::$options["styleguideKitPath"]));
217+
if (isset(self::$options["styleguideKitPath"])) {
218+
self::$options["styleguideKitPath"] = self::$options["baseDir"].self::cleanDir(self::getStyleguideKitPath(self::$options["styleguideKitPath"]));
219+
}
218220

219221
// double-check a few directories are real
220222
if (!is_dir(self::$options["sourceDir"])) {

0 commit comments

Comments
 (0)