mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
Fixed PHP warnings.
(cherry picked from commit 760de99427ed37e15e687dd4ed1eaecc8878a9fd)
This commit is contained in:
parent
c83b07c5e9
commit
12f23163cd
@ -213,7 +213,9 @@ $table->data[$row][1] .= __('No').' '.html_print_radio_button ('flash_chart
|
|||||||
$row++;
|
$row++;
|
||||||
|
|
||||||
$table->data[$row][0] = __('Custom logo') . ui_print_help_icon("custom_logo", true);
|
$table->data[$row][0] = __('Custom logo') . ui_print_help_icon("custom_logo", true);
|
||||||
$table->data[$row][1] = html_print_select (list_files ('images/custom_logo', "png", 1, 0), 'custom_logo', $config["custom_logo"], '', '', '', true);
|
$table->data[$row][1] = html_print_select(
|
||||||
|
list_files('images/custom_logo', "png", 1, 0), 'custom_logo',
|
||||||
|
$config["custom_logo"], '', '', '', true);
|
||||||
|
|
||||||
$row++;
|
$row++;
|
||||||
|
|
||||||
@ -224,7 +226,9 @@ $backgrounds_list_png = list_files("images/backgrounds", "png", 1, 0);
|
|||||||
$backgrounds_list = array_merge($backgrounds_list_jpg, $backgrounds_list_png);
|
$backgrounds_list = array_merge($backgrounds_list_jpg, $backgrounds_list_png);
|
||||||
$backgrounds_list = array_merge($backgrounds_list, $backgrounds_list_gif);
|
$backgrounds_list = array_merge($backgrounds_list, $backgrounds_list_gif);
|
||||||
asort($backgrounds_list);
|
asort($backgrounds_list);
|
||||||
$table->data[$row][1] = html_print_select ($backgrounds_list, 'login_background', $config["login_background"], '', __('Default'), '', true);
|
$table->data[$row][1] = html_print_select ($backgrounds_list,
|
||||||
|
'login_background', $config["login_background"], '', __('Default'),
|
||||||
|
'', true);
|
||||||
|
|
||||||
$row++;
|
$row++;
|
||||||
|
|
||||||
|
@ -826,6 +826,26 @@ function config_process_config () {
|
|||||||
config_update_value ( 'flash_charts', true);
|
config_update_value ( 'flash_charts', true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!isset ($config["login_background"])) {
|
||||||
|
config_update_value ('login_background', '');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!isset ($config["paginate_module"])) {
|
||||||
|
config_update_value ('paginate_module', false);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!isset ($config["graphviz_bin_dir"])) {
|
||||||
|
config_update_value ('graphviz_bin_dir', "");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!isset ($config["fixed_header"])) {
|
||||||
|
config_update_value ('fixed_header', false);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!isset ($config["fixed_menu"])) {
|
||||||
|
config_update_value ('fixed_menu', false);
|
||||||
|
}
|
||||||
|
|
||||||
if (!isset ($config["custom_logo"])) {
|
if (!isset ($config["custom_logo"])) {
|
||||||
config_update_value ('custom_logo', 'pandora_logo_head.png');
|
config_update_value ('custom_logo', 'pandora_logo_head.png');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user