Removed global-option and added map_at_right

This commit is contained in:
int2001
2025-02-18 05:58:19 +00:00
parent 05bc18a2a6
commit ec40302cef
5 changed files with 5 additions and 22 deletions

View File

@@ -67,10 +67,10 @@ class Dashboard extends CI_Controller {
$data['current_active'] = $this->stations->find_active();
$data['themesWithoutMode'] = $this->setup_model->checkThemesWithoutMode();
if (($this->optionslib->get_option('dashboard_map') == 'true') && (($this->session->userdata('user_dashboard_map') ?? 'Y') == 'Y')) {
$data['dashboard_map'] = $this->optionslib->get_option('dashboard_map');
if (($this->session->userdata('user_dashboard_map') ?? '') != '') {
$data['dashboard_map'] = $this->session->userdata('user_dashboard_map') ?? 'Y';
} else {
$data['dashboard_map'] = 'false';
$data['dashboard_map'] = 'N';
}
$data['user_map_custom'] = $this->optionslib->get_map_custom();