add comment

This commit is contained in:
Ante de Baas
2020-05-31 20:18:37 +02:00
parent 1f48ca4711
commit e7cfceb65d

View File

@@ -98,6 +98,7 @@ class ConfigServicesAction extends \Froxlor\Cli\Action
// store in tmp array // store in tmp array
$distributions_select_data[$dist_display] = str_replace(".xml", "", strtolower(basename($_distribution))); $distributions_select_data[$dist_display] = str_replace(".xml", "", strtolower(basename($_distribution)));
//guess if this is the current distro.
$ver = explode('.', $dist->distributionVersion)[0]; $ver = explode('.', $dist->distributionVersion)[0];
if (strtolower($os_dist['ID']) == strtolower($dist->distributionName) && $os_version == $ver) { if (strtolower($os_dist['ID']) == strtolower($dist->distributionName) && $os_version == $ver) {
$os_default = str_replace(".xml", "", strtolower(basename($_distribution))); $os_default = str_replace(".xml", "", strtolower(basename($_distribution)));