From 7fa398b027c7dbef560520339616bc8f82fdf1bb Mon Sep 17 00:00:00 2001 From: "alejandro.campos@artica.es" Date: Mon, 28 Jun 2021 11:25:22 +0200 Subject: [PATCH 1/2] fixed font reference --- pandora_console/extras/mr/49.sql | 6 ++++++ pandora_console/include/functions_config.php | 4 ++-- pandora_console/pandoradb_data.sql | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 pandora_console/extras/mr/49.sql diff --git a/pandora_console/extras/mr/49.sql b/pandora_console/extras/mr/49.sql new file mode 100644 index 0000000000..a6c40dcb2b --- /dev/null +++ b/pandora_console/extras/mr/49.sql @@ -0,0 +1,6 @@ +START TRANSACTION; + +UPDATE `tconfig` set value = 'Lato-Regular.ttf' WHERE token LIKE 'custom_report_front_font'; +UPDATE `tconfig` set value = 'Lato-Regular.ttf' WHERE token LIKE 'fontpath'; + +COMMIT; \ No newline at end of file diff --git a/pandora_console/include/functions_config.php b/pandora_console/include/functions_config.php index 326b725e43..936cc5a9d1 100644 --- a/pandora_console/include/functions_config.php +++ b/pandora_console/include/functions_config.php @@ -2243,7 +2243,7 @@ function config_process_config() if (!isset($config['fontpath'])) { config_update_value( 'fontpath', - 'lato.ttf' + 'Lato-Regular.ttf' ); } @@ -3126,7 +3126,7 @@ function config_process_config() } if (!isset($config['custom_report_front_font'])) { - config_update_value('custom_report_front_font', 'lato.ttf'); + config_update_value('custom_report_front_font', 'Lato-Regular.ttf'); } if (!isset($config['custom_report_front_logo'])) { diff --git a/pandora_console/pandoradb_data.sql b/pandora_console/pandoradb_data.sql index 9e5fefa497..e1c13b9b6b 100644 --- a/pandora_console/pandoradb_data.sql +++ b/pandora_console/pandoradb_data.sql @@ -105,7 +105,7 @@ INSERT INTO `tconfig` (`token`, `value`) VALUES ('show_vc', 1), ('inventory_changes_blacklist', '1,2,20,21'), ('custom_report_front', 0), -('custom_report_front_font', 'lato.ttf'), +('custom_report_front_font', 'Lato-Regular.ttf'), ('custom_report_front_logo', 'images/pandora_logo_white.jpg'), ('custom_report_front_header', ''), ('custom_report_front_footer', ''), From 548c0c3013e1b8ece97b8915f895e3464e01df98 Mon Sep 17 00:00:00 2001 From: "alejandro.campos@artica.es" Date: Mon, 28 Jun 2021 11:27:41 +0200 Subject: [PATCH 2/2] fixed font reference --- pandora_console/extras/mr/49.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/extras/mr/49.sql b/pandora_console/extras/mr/49.sql index a6c40dcb2b..68de9070ed 100644 --- a/pandora_console/extras/mr/49.sql +++ b/pandora_console/extras/mr/49.sql @@ -3,4 +3,4 @@ START TRANSACTION; UPDATE `tconfig` set value = 'Lato-Regular.ttf' WHERE token LIKE 'custom_report_front_font'; UPDATE `tconfig` set value = 'Lato-Regular.ttf' WHERE token LIKE 'fontpath'; -COMMIT; \ No newline at end of file +COMMIT;