Skip to content

Commit

Permalink
Ordening vhost list asc
Browse files Browse the repository at this point in the history
  • Loading branch information
Anderson Guilherme Porto committed Nov 8, 2018
1 parent a49633f commit c2c02ff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .devilbox/www/include/lib/container/Httpd.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,17 @@ public function getVirtualHosts()
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()
);
}
}
}

ksort($vhosts);

return $vhosts;
}

Expand Down

0 comments on commit c2c02ff

Please sign in to comment.