Skip to content

Commit 91681c2

Browse files
committed
adding directory separator support
1 parent 101952c commit 91681c2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

core/console

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ if (!function_exists("json_decode")) {
2020
}
2121

2222
// set-up the project base directory
23-
$baseDir = __DIR__."/../";
23+
$baseDir = __DIR__.DIRECTORY_SEPARATOR."..".DIRECTORY_SEPARATOR;
2424

2525
// auto-load classes
26-
if (file_exists($baseDir."vendor/autoload.php")) {
27-
require($baseDir."vendor/autoload.php");
26+
if (file_exists($baseDir."vendor".DIRECTORY_SEPARATOR."autoload.php")) {
27+
require($baseDir."vendor".DIRECTORY_SEPARATOR."autoload.php");
2828
} else {
2929
print "it doesn't appear that pattern lab has been set-up yet...\n";
30-
print "please install pattern lab's dependencies by typing: php core/bin/composer.phar install...\n";
30+
print "please install pattern lab's dependencies by typing: composer install...\n";
3131
exit;
3232
}
3333

0 commit comments

Comments
 (0)