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

View File

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