Ok, so in 0.9.6.3 the code above was changed to this:
if ($handle = opendir('help')) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != ".." && $file != ".svn") {
$help[] = $file;
}
}
closedir($handle);
}
Is there a good reason that it wasn’t changed to something like this:
if ($handle = opendir('help')) {
while (false !== ($file = readdir($handle))) {
if (!is_dir($file) && $file[0] != '.') {
$help[] = $file;
}
}
closedir($handle);
}
This version will exclude all hidden files (*NIX convention, starting with a ’.’) and all folders. This seems like a neater more general solution than just adding another special case. What do you think?