diff --git a/web/skins/classic/views/options.php b/web/skins/classic/views/options.php index c21288fd7..9498e82ab 100644 --- a/web/skins/classic/views/options.php +++ b/web/skins/classic/views/options.php @@ -29,6 +29,9 @@ $tabs = array(); $tabs['skins'] = translate('Display'); $tabs['system'] = translate('System'); $tabs['config'] = translate('Config'); +if (defined('ZM_PATH_DNSMASQ_CONF') and file_exists(ZM_PATH_DNSMASQ_CONF)) { + $tabs['dnsmasq'] = translate('DHCP'); +} $tabs['API'] = translate('API'); $tabs['servers'] = translate('Servers'); $tabs['storage'] = translate('Storage'); @@ -49,9 +52,6 @@ $tabs['privacy'] = translate('Privacy'); $tabs['MQTT'] = translate('MQTT'); $tabs['telemetry'] = translate('Telemetry'); $tabs['version'] = translate('Versions'); -if (file_exists('skins/classic/views/_options_dnsmasq.php')) { - $tabs['dnsmasq'] = translate('DHCP'); -} $tab = isset($_REQUEST['tab']) ? validHtmlStr($_REQUEST['tab']) : 'system'; @@ -263,8 +263,8 @@ foreach (array_map('basename', glob('skins/'.$skin.'/css/*', GLOB_ONLYDIR)) as $