X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=install%2Findex.php;h=91fa338411ac134266ff19454e10d0f77c4e5f60;hb=40c3b111b007ad16a2eedff175e1612150191d04;hp=fc27f03038097a200e43db1cb57bf2ddf46d6ae2;hpb=e9782c04faf09dd040dbc0c908cdb6e6d4f0dcfc;p=fa-stable.git diff --git a/install/index.php b/install/index.php index fc27f030..91fa3384 100644 --- a/install/index.php +++ b/install/index.php @@ -122,6 +122,9 @@ function install_connect_db() { $db = db_create_db($conn); if (!$db) { display_error(_("Cannot connect to database. User or password is invalid or you have no permittions to create database.")); + } else { + if (strncmp(db_get_version(), "5.6", 3) >= 0) + db_query("SET sql_mode = ''"); } return $db; } @@ -292,6 +295,7 @@ elseif(get_post('install_coas')) 'pass' => $_POST['pass'], 'name' => $_POST['name'], 'admin' => $_POST['admin'], + 'lang' => $_POST['lang'] )); if (do_install()) { $_POST['Page'] = 6; @@ -405,4 +409,3 @@ end_form(1); end_page(false, false, true); -?>