Always push new settings to table
This commit is contained in:
parent
23b9a537c8
commit
a42ae59d22
@ -556,8 +556,10 @@ function migrateSettings()
|
||||
|
||||
hesk_dbConnect();
|
||||
|
||||
$modsForHesk_settings = array();
|
||||
if (file_exists(HESK_PATH . 'modsForHesk_settings.inc.php')) {
|
||||
require_once(HESK_PATH . 'modsForHesk_settings.inc.php');
|
||||
}
|
||||
|
||||
$rtl = getSettingValue($modsForHesk_settings, 'rtl', 0);
|
||||
$show_icons = getSettingValue($modsForHesk_settings, 'show_icons', 0);
|
||||
@ -649,7 +651,6 @@ function migrateSettings()
|
||||
VALUES ('dropdownItemTextHoverBackgroundColor', '" . hesk_dbEscape($dropdown_item_text_hover_background_color) . "')");
|
||||
executeQuery("INSERT INTO `" . hesk_dbEscape($hesk_settings['db_pfix']) . "settings` (`Key`, `Value`)
|
||||
VALUES ('questionMarkColor', '" . hesk_dbEscape($question_mark_color) . "')");
|
||||
}
|
||||
}
|
||||
|
||||
function getSettingValue($settings, $setting, $default)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user