|
|
@@ -3724,7 +3724,7 @@ class BiAuditPowiazania {
|
|
|
$this->saveToDb($path);
|
|
|
}
|
|
|
|
|
|
- private static function weightCalc($n) {
|
|
|
+ private function weightCalc($n) {
|
|
|
if ($this->onlyTargets) return 1;
|
|
|
if ($n < 51) return 1;
|
|
|
if ($n < 101) return 2;
|
|
|
@@ -3795,7 +3795,7 @@ class BiAuditPowiazania {
|
|
|
}));
|
|
|
|
|
|
$count = count($nodes);
|
|
|
- $weight += self::weightCalc($count);
|
|
|
+ $weight += $this->weightCalc($count);
|
|
|
if ($weight <= $this->maxDepth) {
|
|
|
foreach ($nodes as $i => $node) $this->findPowiazania($node['ID'], $weight, ($progress + ($i / ($count * $steps))), ($count * $steps), $node['RELATION_ID'], $node['PARAMS']);
|
|
|
}
|