Skip to content
Snippets Groups Projects
Commit aff014f7 authored by Regis Houssin's avatar Regis Houssin
Browse files

Fix: recovers encode and collate of database

parent 31ad232a
No related branches found
No related tags found
No related merge requests found
......@@ -184,10 +184,14 @@ local $cfile = $cfiledir."conf.php";
local $oldcfile = &transname();
local $olddocdir = &transname();
local $url;
$tmpl = &get_template($d->{'template'});
$charset = $tmpl->{'mysql_charset'};
$collate = $tmpl->{'mysql_collate'};
$encoding = $tmpl->{'postgres_encoding'};
$mycharset = $tmpl->{'mysql_charset'};
$mycollate = $tmpl->{'mysql_collate'};
$pgcharset = $tmpl->{'postgres_encoding'};
$charset = $dbtype eq "mysql" ? $mycharset : $pgcharset;
$collate = $dbtype eq "mysql" ? $mycollate : "C";
$path = &script_path_url($d, $opts);
if ($path =~ /^https:/) {
$url = "https://$d->{'dom'}";
......
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