Mariusz Muszyński 7 년 전
부모
커밋
1aaf1788fb
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      SE/se-lib/Route/UrlAction/BiAuditGenerate.php

+ 2 - 2
SE/se-lib/Route/UrlAction/BiAuditGenerate.php

@@ -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']);
 		}