Fix missing utf8mb4-check.
This commit is contained in:
parent
d811c0bc56
commit
d6ebe7a46f
@ -165,3 +165,10 @@ function serendipity_db_probe($hash, &$errs)
|
|||||||
$db = DbFactory::createFromConfig($serendipity);
|
$db = DbFactory::createFromConfig($serendipity);
|
||||||
return $db->probe($hash, $errs);
|
return $db->probe($hash, $errs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function serendipity_utf8mb4_reader()
|
||||||
|
{
|
||||||
|
global $serendipity;
|
||||||
|
$db = DbFactory::createFromConfig($serendipity);
|
||||||
|
return $db->isUtf8mb4Ready();
|
||||||
|
}
|
||||||
|
@ -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
|
* 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
|
* @return boolean Whether the database could support utf8mb4
|
||||||
*/
|
*/
|
||||||
protected function isUtf8mb4Ready()
|
public function isUtf8mb4Ready()
|
||||||
{
|
{
|
||||||
$mysql_version = mysqli_get_server_info($this->db_conn);
|
$mysql_version = mysqli_get_server_info($this->db_conn);
|
||||||
$maria = false;
|
$maria = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user