Skip to content
Snippets Groups Projects
Commit 27f19fd5 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Enhance installer

parent e813448b
No related branches found
No related tags found
No related merge requests found
......@@ -30,6 +30,8 @@
define('DONOTLOADCONF',1); // To avoid loading conf by file inc.php
include("./inc.php");
$action=GETPOST('action');
$setuplang=isset($_POST["selectlang"])?$_POST["selectlang"]:(isset($_GET["selectlang"])?$_GET["selectlang"]:'auto');
$langs->setDefaultLang($setuplang);
......@@ -78,7 +80,7 @@ $main_data_dir=isset($_POST["main_data_dir"])?$_POST["main_data_dir"]:'';
if (! $main_data_dir) { $main_data_dir="$main_dir/documents"; }
if ($_POST["action"] == "set")
if ($action == "set")
{
umask(0);
foreach($_POST as $cle=>$valeur)
......
......@@ -41,6 +41,7 @@ error_reporting(0); // Disable all errors
@set_time_limit(300); // Need more than 240 on Windows 7/64
error_reporting($err);
$action=GETPOST('action');
$setuplang=isset($_POST["selectlang"])?$_POST["selectlang"]:(isset($_GET["selectlang"])?$_GET["selectlang"]:'auto');
$langs->setDefaultLang($setuplang);
......@@ -72,7 +73,7 @@ if (! is_writable($conffile))
exit;
}
if ($_POST["action"] == "set")
if ($action == "set")
{
print '<h3>'.$langs->trans("Database").'</h3>';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment