diff --git a/config.php.in b/config.php.in index 28167fa..9d936be 100644 --- a/config.php.in +++ b/config.php.in @@ -355,8 +355,6 @@ include("system/helper/detectmobilebrowser.php"); -if(MOBILE_DEVICE == 1) { $config['THEME'] = 'mobile'; } - // make sure auditors are restricted in a saas environment if($config['ENABLE_SAAS'] == 1) { $config['RESTRICTED_AUDITOR'] = 1; } if($session->get("username") == 'auditor@local' || isset($_SERVER['argv'][2]) ) { $config['RESTRICTED_AUDITOR'] = 0; } diff --git a/webui/system/controller.php b/webui/system/controller.php index 8a3a950..690e188 100644 --- a/webui/system/controller.php +++ b/webui/system/controller.php @@ -94,16 +94,14 @@ $file = DIR_THEME . THEME . '/templates/' . $this->template; } - if(MOBILE_DEVICE == 1) { $file = DIR_THEME . 'mobile' . '/templates/' . $this->template; } - if(file_exists($file)){ extract($this->data); ob_start(); - + include($file); - + $content = ob_get_contents(); ob_end_clean(); @@ -117,5 +115,3 @@ } - -?> diff --git a/webui/view/theme/default/templates/common/layout-search.tpl b/webui/view/theme/default/templates/common/layout-search.tpl index 522dd99..abef8f9 100644 --- a/webui/view/theme/default/templates/common/layout-search.tpl +++ b/webui/view/theme/default/templates/common/layout-search.tpl @@ -5,6 +5,8 @@