more niceness

This commit is contained in:
Shish Moom
2009-07-06 04:57:08 -07:00
parent 7d99ef3e92
commit e68f929055
2 changed files with 3 additions and 2 deletions

View File

@ -181,7 +181,9 @@ class Setup extends SimpleExtension {
$themes = array();
foreach(glob("themes/*") as $theme_dirname) {
$name = str_replace("themes/", "", $theme_dirname);
$themes[ucfirst($name)] = $name;
$human = str_replace("_", " ", $name);
$human = ucwords($human);
$themes[$human] = $name;
}
$full = "http://" . $_SERVER["SERVER_NAME"] . $_SERVER["PHP_SELF"];