diff --git a/config.php.in b/config.php.in index 128a15e..e92a7b7 100644 --- a/config.php.in +++ b/config.php.in @@ -8,7 +8,7 @@ define('NORMAL', 1); define('DEBUG', 5); -$config = array(); +$config = []; /* @@ -16,6 +16,8 @@ * variable to be overridden in config-site.php */ +$config['ENABLE_MOBILE_PREVIEW'] = 0; + $config['BRANDING_TEXT'] = ''; $config['BRANDING_URL'] = ''; $config['BRANDING_LOGO'] = ''; @@ -357,8 +359,6 @@ include("system/helper/detectmobilebrowser.php"); -$config['ENABLE_MOBILE_PREVIEW'] = 0; - // 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/helper/detectmobilebrowser.php b/webui/system/helper/detectmobilebrowser.php index 71f3635..fd8ce02 100644 --- a/webui/system/helper/detectmobilebrowser.php +++ b/webui/system/helper/detectmobilebrowser.php @@ -12,6 +12,3 @@ } define('MOBILE_DEVICE', browser_detect()); - - -?>