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