Skip to content

Commit 146369c

Browse files
committed
Fix bug where some directories were skipped
1 parent 0a3b669 commit 146369c

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

gen-phpweb-sqlite-db.php

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -179,14 +179,11 @@ function scan_langs($root)
179179
if (!$d) {
180180
return;
181181
}
182-
readdir($d); readdir($d);
183182
while (($f = readdir($d)) !== false) {
184-
if ($f === '.svn') {
185-
continue;
186-
}
187-
if ($f === '.git') {
188-
continue;
189-
}
183+
if (strpos($f, '.') !== false) {
184+
continue;
185+
}
186+
190187
$file = $root . DIRECTORY_SEPARATOR . $f;
191188

192189
if (is_dir($file)) {

0 commit comments

Comments
 (0)