Skip to content

Commit

Permalink
EZP-29573: Legacy installer should allow utf8mb4 charset (#1386)
Browse files Browse the repository at this point in the history
  • Loading branch information
glye committed Jan 11, 2019
1 parent a668857 commit b9435eb
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions kernel/setup/steps/ezstep_installer.php
Expand Up @@ -489,12 +489,11 @@ function checkDatabaseRequirements( $dbCharset = false, $overrideDBParameters =
$checkedCharset = $db->checkCharset( $charsetsList, $currentCharset );
if ( $checkedCharset === false )
{
// If the current charset is utf-8 we use that instead
// since it can represent any character possible in the chosen languages
if ( $currentCharset == 'utf-8' )
// If the current charset is utf-8 or utf8mb4 we use that instead
// since they can represent any character possible in the chosen languages
if ( in_array( $currentCharset, array( 'utf-8', 'utf8mb4' ) ) )
{
$charset = 'utf-8';
$result['site_charset'] = $charset;
$result['site_charset'] = 'utf-8';
}
else
{
Expand Down

0 comments on commit b9435eb

Please sign in to comment.