Skip to content

Commit 8e4284f

Browse files
committed
updating the path to the config file
1 parent 24dd28f commit 8e4284f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PatternLab/Config.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class Config {
2626
protected static $userConfigDirClean = "config";
2727
protected static $userConfigDirDash = "_config";
2828
protected static $userConfigPath = "";
29-
protected static $plConfigPath = "../../config/config.yml.default";
29+
protected static $plConfigPath = "config/config.yml.default";
3030
protected static $dirAdded = false;
3131

3232
/**
@@ -105,7 +105,7 @@ public static function init($baseDir = "", $verbose = true) {
105105
self::$userConfigDirDash = self::$options["baseDir"].self::$userConfigDirDash;
106106
self::$userConfigDir = (is_dir(self::$userConfigDirDash)) ? self::$userConfigDirDash : self::$userConfigDirClean;
107107
self::$userConfigPath = self::$userConfigDir.DIRECTORY_SEPARATOR.self::$userConfig;
108-
self::$plConfigPath = __DIR__.DIRECTORY_SEPARATOR.self::$plConfigPath;
108+
self::$plConfigPath = self::$options["baseDir"].self::$plConfigPath;
109109
self::$dirAdded = true;
110110

111111
// just in case the config directory doesn't exist at all

0 commit comments

Comments
 (0)