Clean up references to travis in all tests

This commit is contained in:
Kijin Sung 2021-03-12 20:53:40 +09:00
parent 1a824ae652
commit 715e8d781c
3 changed files with 8 additions and 25 deletions

View file

@ -33,7 +33,7 @@ class installController extends install
$config = Context::gets('db_type', 'db_host', 'db_port', 'db_user', 'db_pass', 'db_database', 'db_prefix');
// Disallow installation using the root account.
if (trim($config->db_user) === 'root')
if (trim($config->db_user) === 'root' && !preg_match('/Development Server$/', $_SERVER['SERVER_SOFTWARE']))
{
return new BaseObject(-1, 'msg_dbroot_disallowed');
}