1
0
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:
Sergey Romaneko
2012-10-25 13:34:47 +03:00
parent ef0aca85c2
commit f18fe8108a

View File

@@ -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) {