- Fixes DB configuration being partially set
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user