@@ -127,8 +127,8 @@
var hidden_input_name = 'scheduleds[' + jQuery(this).attr('scheduled-id') + '][numbers][]';
window.intlTelInput(this, {
hiddenInput: hidden_input_name,
- defaultCountry: 's(RASPISMS_SETTINGS_DEFAULT_PHONE_COUNTRY); ?>',
- preferredCountries: s(json_encode(explode(',', RASPISMS_SETTINGS_PREFERRED_PHONE_COUNTRY)), false, false); ?>,
+ defaultCountry: 's($_SESSION['user']['settings']['default_phone_country']); ?>',
+ preferredCountries: s(json_encode(explode(',', $_SESSION['user']['settings']['preferred_phone_country'])), false, false); ?>,
nationalMode: true,
utilsScript: '/intlTelInput/utils.js'
});
@@ -150,8 +150,8 @@
var phone_input = jQuery('#' + random_id)[0];
window.intlTelInput(phone_input, {
hiddenInput: hidden_input_name,
- defaultCountry: 's(RASPISMS_SETTINGS_DEFAULT_PHONE_COUNTRY); ?>',
- preferredCountries: s(json_encode(explode(',', RASPISMS_SETTINGS_PREFERRED_PHONE_COUNTRY)), false, false); ?>,
+ defaultCountry: 's($_SESSION['user']['settings']['default_phone_country']); ?>',
+ preferredCountries: s(json_encode(explode(',', $_SESSION['user']['settings']['preferred_phone_country'])), false, false); ?>,
nationalMode: true,
utilsScript: '/intlTelInput/utils.js'
});
diff --git a/templates/setting/show.php b/templates/setting/show.php
index 550877f..939c84b 100755
--- a/templates/setting/show.php
+++ b/templates/setting/show.php
@@ -45,7 +45,7 @@