set to no limit if limit = 0
This commit is contained in:
parent
54618a5fea
commit
44644da749
@ -357,6 +357,10 @@ class dcTranslater extends dcTranslaterDefaultSettings
|
||||
*/
|
||||
public static function isBackupLimit(string $id, string $root, int $limit = 10, bool $throw = false): bool
|
||||
{
|
||||
if (!$limit) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$count = 0;
|
||||
foreach (self::scandir($root) as $file) {
|
||||
if (!is_dir($root . '/' . $file)
|
||||
|
Loading…
Reference in New Issue
Block a user