mirror of
https://github.com/processwire/processwire.git
synced 2025-08-24 23:31:01 +02:00
Fix issue processwire/processwire-issues#1543
This commit is contained in:
@@ -761,7 +761,8 @@ class ProcessLanguageTranslator extends Process {
|
||||
foreach($dirIterator as $file) {
|
||||
|
||||
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()) {
|
||||
$pathname = $file->getPathname();
|
||||
if(strpos($pathname, $assetsDir) !== false) continue; // avoid descending into /site/assets/
|
||||
|
Reference in New Issue
Block a user