This commit is contained in:
Roland Gruber 2014-04-20 13:15:37 +00:00
parent 5b73ecb074
commit e47bf042a8
1 changed files with 3 additions and 1 deletions

View File

@ -58,11 +58,13 @@ function getTypes() {
$dir = dir($dirname);
$return = array();
// get type names.
while ($entry = $dir->read())
while ($entry = $dir->read()) {
if ((substr($entry, strlen($entry) - 4, 4) == '.inc') && is_file($dirname . '/'.$entry)) {
$entry = substr($entry, 0, strpos($entry, '.'));
$return[] = $entry;
}
}
$dir->close();
return $return;
}