mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 09:38:23 +01:00
Code comment
This commit is contained in:
@@ -173,7 +173,11 @@ function run_sql($sqlfile,$silent=1,$entity='',$usesavepoint=1,$handler='',$oker
|
|||||||
}
|
}
|
||||||
else // This is a test on a constant. For example when we have -- VMYSQLUTF8UNICODE, we test constant $conf->global->UTF8UNICODE
|
else // This is a test on a constant. For example when we have -- VMYSQLUTF8UNICODE, we test constant $conf->global->UTF8UNICODE
|
||||||
{
|
{
|
||||||
if (empty($conf->db->dolibarr_main_db_collation) || ($reg[2] != strtoupper(preg_replace('/_/', '', $conf->db->dolibarr_main_db_collation)))) $qualified=0;
|
$dbcollation = strtoupper(preg_replace('/_/', '', $conf->db->dolibarr_main_db_collation));
|
||||||
|
//var_dump($reg[2]);
|
||||||
|
//var_dump($dbcollation);
|
||||||
|
if (empty($conf->db->dolibarr_main_db_collation) || ($reg[2] != $dbcollation)) $qualified=0;
|
||||||
|
//var_dump($qualified);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -913,7 +913,7 @@ if ($ok && GETPOST('force_disable_of_modules_not_found','alpha'))
|
|||||||
// clean_linked_elements: Check and clean linked elements
|
// clean_linked_elements: Check and clean linked elements
|
||||||
if ($ok && GETPOST('force_utf8_on_tables','alpha'))
|
if ($ok && GETPOST('force_utf8_on_tables','alpha'))
|
||||||
{
|
{
|
||||||
print '<tr><td colspan="2"><br>*** Force page code and collation with utf8 (for mysql/mariadb only)</td></tr>';
|
print '<tr><td colspan="2"><br>*** Force page code and collation of tables into utf8 (for mysql/mariadb only)</td></tr>';
|
||||||
|
|
||||||
if ($db->type == "mysql")
|
if ($db->type == "mysql")
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user