This commit is contained in:
parent
5b73ecb074
commit
e47bf042a8
|
@ -58,11 +58,13 @@ function getTypes() {
|
||||||
$dir = dir($dirname);
|
$dir = dir($dirname);
|
||||||
$return = array();
|
$return = array();
|
||||||
// get type names.
|
// get type names.
|
||||||
while ($entry = $dir->read())
|
while ($entry = $dir->read()) {
|
||||||
if ((substr($entry, strlen($entry) - 4, 4) == '.inc') && is_file($dirname . '/'.$entry)) {
|
if ((substr($entry, strlen($entry) - 4, 4) == '.inc') && is_file($dirname . '/'.$entry)) {
|
||||||
$entry = substr($entry, 0, strpos($entry, '.'));
|
$entry = substr($entry, 0, strpos($entry, '.'));
|
||||||
$return[] = $entry;
|
$return[] = $entry;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
$dir->close();
|
||||||
return $return;
|
return $return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue