mirror of
https://github.com/processwire/processwire.git
synced 2025-08-25 15:51:37 +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) {
|
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/
|
||||||
|
Reference in New Issue
Block a user