Commit 03a3705a authored by skummer's avatar skummer

ZP-226 #comment group folders if more than 4 folders are pushed #time 30m

git-svn-id: https://z-push.org/svn/z-push/trunk@1447 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent 1ace7d29
......@@ -410,9 +410,19 @@ class SyncCollections implements Iterator {
if ($onlyPingable && $spa->GetPingableFlag() !== true)
continue;
$classes[] = $spa->GetContentClass();
if (!isset($classes[$spa->GetContentClass()]))
$classes[$spa->GetContentClass()] = 0;
$classes[$spa->GetContentClass()] += 1;
}
$checkClasses = implode("/", $classes);
if (empty($classes))
$checkClasses = "policies only";
else if (array_sum($classes) > 4) {
$checkClasses = "";
foreach($classes as $class=>$count)
$checkClasses .= sprintf("%s(%d) ", $class, $count);
}
else
$checkClasses = implode("/", array_keys($classes));
$pingTracking = new PingTracking();
$this->changes = array();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment