X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=install%2Findex.php;h=9bc9a41ea92d028cc2e69be2e5531b1f8a0fa3fc;hb=33dfc21a26f08e9ac19048bbcf80cce2351a6cfe;hp=fc27f03038097a200e43db1cb57bf2ddf46d6ae2;hpb=24a22844421c7b78b7988e23e8d7c4d6fd30f749;p=fa-stable.git
diff --git a/install/index.php b/install/index.php
index fc27f030..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;
@@ -405,4 +409,3 @@ end_form(1);
end_page(false, false, true);
-?>