Ordening vhost list asc

This commit is contained in:
Anderson Guilherme Porto 2018-11-08 14:23:39 -02:00
parent a49633f377
commit c2c02ff351

View File

@ -65,7 +65,7 @@ class Httpd extends BaseClass implements BaseInterface
while (false !== ($directory = readdir($handle))) {
if ($this->_is_valid_dir($docRoot . DIRECTORY_SEPARATOR . $directory) && $directory != '.' && $directory != '..') {
$vhosts[] = array(
$vhosts[$directory] = array(
'name' => $directory,
'domain' => $directory .'.' . $this->getTldSuffix(),
'href' => 'http://' . $directory . '.' . $this->getTldSuffix()
@ -73,6 +73,9 @@ class Httpd extends BaseClass implements BaseInterface
}
}
}
ksort($vhosts);
return $vhosts;
}