Skip to content

Commit

Permalink
Fix installer
Browse files Browse the repository at this point in the history
  • Loading branch information
RobiNN1 committed Feb 12, 2020
1 parent 0b5a21c commit d6b0601
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion includes/classes/PHPFusion/Installer/Steps/DatabaseSetup.inc
Expand Up @@ -144,7 +144,9 @@ class InstallerDbSetup extends Install_Core {
* Do not allow -
*/
foreach (self::$connection as $key => $value) {
self::$connection[$key] = str_replace('-', '_', $value);
if ($key !== 'db_host') {
self::$connection[$key] = str_replace('-', '_', $value);
}
}
// Force underscore for these two values
self::$connection['db_prefix'] = rtrim(self::$connection['db_prefix'], '_').'_';
Expand Down

0 comments on commit d6b0601

Please sign in to comment.