mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-07-31 02:10:37 +02:00
Core: IDIORM optimization #28
This commit is contained in:
@@ -85,9 +85,11 @@
|
||||
Session::start();
|
||||
|
||||
// Init ORM
|
||||
ORM::configure(MONSTRA_DB_DSN);
|
||||
ORM::configure('username', MONSTRA_DB_USER);
|
||||
ORM::configure('password', MONSTRA_DB_PASSWORD);
|
||||
if (defined('MONSTRA_DB_DSN')) {
|
||||
ORM::configure(MONSTRA_DB_DSN);
|
||||
ORM::configure('username', MONSTRA_DB_USER);
|
||||
ORM::configure('password', MONSTRA_DB_PASSWORD);
|
||||
}
|
||||
|
||||
// Auto cleanup if MONSTRA_DEBUG is true
|
||||
if (Core::$environment == Core::DEVELOPMENT) {
|
||||
|
Reference in New Issue
Block a user