Fix missing utf8mb4-check.

This commit is contained in:
Markus Birth 2022-02-12 23:58:17 +01:00
parent d811c0bc56
commit d6ebe7a46f
Signed by: mbirth
GPG Key ID: A9928D7A098C3A9A
2 changed files with 9 additions and 2 deletions

View File

@ -165,3 +165,10 @@ function serendipity_db_probe($hash, &$errs)
$db = DbFactory::createFromConfig($serendipity);
return $db->probe($hash, $errs);
}
function serendipity_utf8mb4_reader()
{
global $serendipity;
$db = DbFactory::createFromConfig($serendipity);
return $db->isUtf8mb4Ready();
}

View File

@ -331,8 +331,8 @@ class MysqliDatabase extends DbAbstract
* innodb being available with fulltext index and large index support, so that our database scheme can work
*
* @return boolean Whether the database could support utf8mb4
*/
protected function isUtf8mb4Ready()
*/
public function isUtf8mb4Ready()
{
$mysql_version = mysqli_get_server_info($this->db_conn);
$maria = false;