mirror of
https://github.com/pattern-lab/edition-php-twig-standard.git
synced 2025-01-16 20:18:15 +01:00
adding directory separator support
This commit is contained in:
parent
101952c52b
commit
91681c2461
@ -20,14 +20,14 @@ if (!function_exists("json_decode")) {
|
||||
}
|
||||
|
||||
// set-up the project base directory
|
||||
$baseDir = __DIR__."/../";
|
||||
$baseDir = __DIR__.DIRECTORY_SEPARATOR."..".DIRECTORY_SEPARATOR;
|
||||
|
||||
// auto-load classes
|
||||
if (file_exists($baseDir."vendor/autoload.php")) {
|
||||
require($baseDir."vendor/autoload.php");
|
||||
if (file_exists($baseDir."vendor".DIRECTORY_SEPARATOR."autoload.php")) {
|
||||
require($baseDir."vendor".DIRECTORY_SEPARATOR."autoload.php");
|
||||
} else {
|
||||
print "it doesn't appear that pattern lab has been set-up yet...\n";
|
||||
print "please install pattern lab's dependencies by typing: php core/bin/composer.phar install...\n";
|
||||
print "please install pattern lab's dependencies by typing: composer install...\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user