X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=install%2Findex.php;h=9bc9a41ea92d028cc2e69be2e5531b1f8a0fa3fc;hb=cfaa5cec1f5137bcc1599a4306879e3265d1dacd;hp=f617dfffdf6b0be9bbd2c7f1855047ab33c8a380;hpb=5b8f4c4b4aa8cf996bc071f116bfce1273200fa2;p=fa-stable.git
diff --git a/install/index.php b/install/index.php
index f617dfff..9bc9a41e 100644
--- a/install/index.php
+++ b/install/index.php
@@ -31,7 +31,7 @@ function subpage_title($txt)
{
global $path_to_root;
- echo '
+ echo '
';
$page = @$_POST['Page'] ? $_POST['Page'] : 1;
@@ -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;