mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
PreferencesCommand: Always use utf8
as connection charset
This commit is contained in:
parent
aee82ad342
commit
e8ae6c912d
@ -35,7 +35,9 @@ class PreferencesCommand extends Command
|
||||
$resource = $this->params->getRequired('resource');
|
||||
}
|
||||
|
||||
$connection = ResourceFactory::create($resource);
|
||||
$resourceConfig = ResourceFactory::getResourceConfig($resource);
|
||||
$resourceConfig->charset = 'utf8';
|
||||
$connection = ResourceFactory::createResource($resourceConfig);
|
||||
|
||||
$preferencesPath = Config::resolvePath('preferences');
|
||||
if (! file_exists($preferencesPath)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user