Send the database object into the function

This commit is contained in:
FusionPBX 2024-08-05 16:56:51 -06:00 committed by GitHub
parent a69b4d91f1
commit b05c0534b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 5 deletions

View File

@ -114,10 +114,7 @@ if ($domains_processed == 1) {
//set country depend variables as country code and international direct dialing code (exit code)
if (!function_exists('set_country_vars')) {
function set_country_vars($x) {
//import the database object
global $database;
function set_country_vars($database, $x) {
//include the countrries
require "resources/countries.php";
@ -214,7 +211,7 @@ if ($domains_processed == 1) {
}
//set country code variables
set_country_vars($x);
set_country_vars($database, $x);
//save the vars.xml file
save_var_xml();