Resolve conflicts
This commit is contained in:
parent
eb222cc82f
commit
7701ff7ad1
|
@ -133,21 +133,17 @@ $buttons['notifications'] = [
|
|||
'text' => '<a href="'.ui_get_full_url('index.php?sec=gsetup&sec2=godmode/setup/setup§ion=notifications').'">'.html_print_image('images/alerts_template.png', true, ['title' => __('Notifications')]).'</a>',
|
||||
];
|
||||
|
||||
$buttons['gis'] = [
|
||||
'active' => false,
|
||||
'text' => '<a href="'.ui_get_full_url('index.php?sec=general&sec2=godmode/setup/setup§ion=gis').'">'.html_print_image('images/gis_tab.png', true, ['title' => __('GIS Map connection')]).'</a>',
|
||||
|
||||
$buttons['websocket_engine'] = [
|
||||
'active' => false,
|
||||
'text' => '<a href="'.ui_get_full_url('index.php?sec=gsetup&sec2=godmode/setup/setup§ion=websocket_engine').'">'.html_print_image('images/websocket_small.png', true, ['title' => __('Websocket engine')]).'</a>',
|
||||
];
|
||||
|
||||
$help_header = '';
|
||||
if (enterprise_installed()) {
|
||||
$help_header = '';
|
||||
if (enterprise_installed()) {
|
||||
$subpage = setup_enterprise_add_subsection_main($section, $buttons, $help_header);
|
||||
}
|
||||
}
|
||||
|
||||
switch ($section) {
|
||||
switch ($section) {
|
||||
case 'general':
|
||||
$buttons['general']['active'] = true;
|
||||
$subpage = ' » '.__('General');
|
||||
|
@ -187,11 +183,6 @@ $buttons['websocket_engine'] = [
|
|||
$help_header = 'setup_integria_tab';
|
||||
break;
|
||||
|
||||
case 'gis':
|
||||
$buttons['gis']['active'] = true;
|
||||
$subpage = ' » '.__('Map conections GIS');
|
||||
break;
|
||||
|
||||
case 'notifications':
|
||||
$buttons['notifications']['active'] = true;
|
||||
$subpage = ' » '.__('Notifications');
|
||||
|
@ -212,19 +203,19 @@ $buttons['websocket_engine'] = [
|
|||
default:
|
||||
// Default.
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// Header.
|
||||
ui_print_page_header(
|
||||
// Header.
|
||||
ui_print_page_header(
|
||||
__('Configuration').$subpage,
|
||||
'',
|
||||
false,
|
||||
$help_header,
|
||||
true,
|
||||
$buttons
|
||||
);
|
||||
);
|
||||
|
||||
if (isset($config['error_config_update_config'])) {
|
||||
if (isset($config['error_config_update_config'])) {
|
||||
if ($config['error_config_update_config']['correct'] == false) {
|
||||
ui_print_error_message($config['error_config_update_config']['message']);
|
||||
} else {
|
||||
|
@ -232,9 +223,9 @@ $buttons['websocket_engine'] = [
|
|||
}
|
||||
|
||||
unset($config['error_config_update_config']);
|
||||
}
|
||||
}
|
||||
|
||||
switch ($section) {
|
||||
switch ($section) {
|
||||
case 'general':
|
||||
include_once $config['homedir'].'/godmode/setup/setup_general.php';
|
||||
break;
|
||||
|
@ -263,10 +254,6 @@ $buttons['websocket_engine'] = [
|
|||
include_once $config['homedir'].'/godmode/setup/setup_integria.php';
|
||||
break;
|
||||
|
||||
case 'gis':
|
||||
include_once $config['homedir'].'/godmode/setup/gis.php';
|
||||
break;
|
||||
|
||||
case 'notifications':
|
||||
include_once $config['homedir'].'/godmode/setup/setup_notifications.php';
|
||||
break;
|
||||
|
@ -278,4 +265,4 @@ $buttons['websocket_engine'] = [
|
|||
default:
|
||||
enterprise_hook('setup_enterprise_select_tab', [$section]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue