- Fixes DB configuration being partially set

This commit is contained in:
Vlad
2016-12-20 10:14:04 -05:00
parent cad6391fc6
commit 949d6033d7
2 changed files with 24 additions and 62 deletions

View File

@@ -53,9 +53,9 @@ class Initializer {
\ORM::configure('logging', WP_DEBUG);
\ORM::configure('driver_options', array(
\PDO::MYSQL_ATTR_INIT_COMMAND =>
'SET NAMES utf8,
TIME_ZONE = "' . Env::$db_timezone_offset. '",
sql_mode=(SELECT REPLACE(@@sql_mode,"ONLY_FULL_GROUP_BY",""))'
'SET NAMES utf8, ' .
'TIME_ZONE = "' . Env::$db_timezone_offset . '", ' .
'sql_mode=(SELECT REPLACE(@@sql_mode,"ONLY_FULL_GROUP_BY",""))'
));
$settings = Env::$db_prefix . 'settings';
@@ -226,4 +226,4 @@ class Initializer {
function handleFailedInitialization($message) {
return WPNotice::displayError($message);
}
}
}