Update base.php
This commit is contained in:
parent
aa000ed1c8
commit
3de566294c
|
@ -51,7 +51,13 @@ if(!function_exists("include_isolate")) {
|
|||
// set autoloader
|
||||
if(!function_exists("set_autoloader")) {
|
||||
function set_autoloader() {
|
||||
include('./vendor/autoload.php');
|
||||
$flag = false;
|
||||
$inc_file = './vendor/autoload.php'
|
||||
if(file_exists($inc_file)) {
|
||||
include('./vendor/autoload.php');
|
||||
$flag = true;
|
||||
}
|
||||
return $flag;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user