includeIfExists function now works properly(return false now)
parent
5701f60157
commit
2cb697a4bb
|
@ -12,9 +12,7 @@
|
||||||
|
|
||||||
function includeIfExists($file)
|
function includeIfExists($file)
|
||||||
{
|
{
|
||||||
if (file_exists($file)) {
|
return file_exists($file)===true ? include $file : false;
|
||||||
return include $file;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((!$loader = includeIfExists(__DIR__.'/../vendor/autoload.php')) && (!$loader = includeIfExists(__DIR__.'/../../../autoload.php'))) {
|
if ((!$loader = includeIfExists(__DIR__.'/../vendor/autoload.php')) && (!$loader = includeIfExists(__DIR__.'/../../../autoload.php'))) {
|
||||||
|
|
Loading…
Reference in New Issue