fix another detail in scandir

Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
Simon L. 2025-05-30 10:47:55 +02:00
parent ae5adc989f
commit 635381a4c8

View file

@ -1026,7 +1026,7 @@ class ConfigurationManager
return $cc; return $cc;
} }
// Get rid of dots from the scandir command // Get rid of dots from the scandir command
$dir = array_diff($dir, array('..', '.')); $dir = array_diff($dir, array('..', '.', 'readme.md'));
foreach ($dir as $id) { foreach ($dir as $id) {
$filePath = DataConst::GetCommunityContainersDirectory() . '/' . $id . '/' . $id . '.json'; $filePath = DataConst::GetCommunityContainersDirectory() . '/' . $id . '/' . $id . '.json';
$fileContents = apcu_fetch($filePath); $fileContents = apcu_fetch($filePath);