Added missing company settings to upgrade script, fixed company settings refreshing...
[fa-stable.git] / includes / db / connect_db_mysql.inc
index 622745ce7ab166a8056928d7fd0c55aacc205e19..f6417e4547fd03ea117a27893aeb0beb2543652c 100644 (file)
@@ -14,7 +14,7 @@ define('SQL_MODE', ''); // STRICT_ALL_TABLES,NO_ZERO_IN_DATE ?
 
 function set_global_connection($company=-1)
 {
-       global $db, $path_to_root, $db_connections;
+       global $db, $path_to_root, $db_connections, $SysPrefs;
 
        include ($path_to_root . "/config_db.php");
        if ($company == -1) 
@@ -35,6 +35,7 @@ function set_global_connection($company=-1)
        ///// We are, however, investigating the existing code to be compatible in the future.
                db_query("SET sql_mode = '".SQL_MODE."'");
        /////
+       $SysPrefs->refresh();
        return $db;
 }