Fix typo. Also added isUtf8mb4Ready() to DbAbstract.
This commit is contained in:
parent
d6ebe7a46f
commit
8ecebf8940
@ -166,7 +166,7 @@ function serendipity_db_probe($hash, &$errs)
|
||||
return $db->probe($hash, $errs);
|
||||
}
|
||||
|
||||
function serendipity_utf8mb4_reader()
|
||||
function serendipity_utf8mb4_ready()
|
||||
{
|
||||
global $serendipity;
|
||||
$db = DbFactory::createFromConfig($serendipity);
|
||||
|
@ -359,4 +359,16 @@ abstract class DbAbstract
|
||||
public function probe($hash, &$errs)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if we think that it is safe to ugprade to utf8mb4. This checks version numbers and applied settings.
|
||||
* Depending on the version of mariadb/mysql we need to check either one or three settings. We check for
|
||||
* 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
|
||||
*/
|
||||
public function isUtf8mb4Ready()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user