getDB(), getRootDB()를 autoload 클래스로 변경

- 각각 DB::db(), RootDB::db()임.
This commit is contained in:
2018-03-25 00:07:37 +09:00
parent bb1a496835
commit 9e1aadf486
62 changed files with 258 additions and 269 deletions
+2 -2
View File
@@ -23,7 +23,7 @@ if(!AppConf::getRoot()->isExists()){
}
require(__DIR__.'/../f_config/DB.php');
$rootDB = getRootDB();
$rootDB = RootDB::db();
$rootDB->throw_exception_on_nonsql_error = false;
$rootDB->nonsql_error_handler = 'dbConnFail';
@@ -33,7 +33,7 @@ $memberCnt = $rootDB->queryFirstField('SELECT count(`NO`) from MEMBER');
if($memberCnt === 0){
Json::die([
'step'=>'admin',
'globalSalt'=>getGlobalSalt()
'globalSalt'=>RootDB::getGlobalSalt()
]);
}