1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-25 23:56:41 +02:00
This commit is contained in:
Ryan Cramer
2022-03-18 09:26:28 -04:00
parent fd538897d0
commit f69c0ad39f

View File

@@ -761,7 +761,8 @@ class ProcessLanguageTranslator extends Process {
foreach($dirIterator as $file) { foreach($dirIterator as $file) {
if($file->isDot()) continue; if($file->isDot()) continue;
if(substr($file->getBasename(), 0, 1) == '.') continue; // skip hidden; $c = substr($file->getBasename(), 0, 1);
if($c === '.' || $c === '-' || $c === '\\') continue; // skip hidden
if($file->isDir()) { if($file->isDir()) {
$pathname = $file->getPathname(); $pathname = $file->getPathname();
if(strpos($pathname, $assetsDir) !== false) continue; // avoid descending into /site/assets/ if(strpos($pathname, $assetsDir) !== false) continue; // avoid descending into /site/assets/