mirror of
https://github.com/standardebooks/web.git
synced 2025-07-05 22:30:30 -04:00
Remove DbConnection class in favor of fully-static and typed Db class
This commit is contained in:
parent
0a684facee
commit
e2e14a3551
6 changed files with 564 additions and 528 deletions
|
@ -66,7 +66,7 @@ if(SITE_STATUS == SITE_STATUS_LIVE){
|
|||
});
|
||||
}
|
||||
|
||||
$GLOBALS['DbConnection'] = new DbConnection(DATABASE_DEFAULT_DATABASE, DATABASE_DEFAULT_HOST);
|
||||
Db::Connect(DATABASE_DEFAULT_DATABASE, DATABASE_DEFAULT_HOST);
|
||||
|
||||
Session::InitializeFromCookie();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue