From 3bca59ea5ca7a2074ca19dcbcc9340f0301d5f61 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Mon, 14 Apr 2014 23:10:20 +0200 Subject: [PATCH] revert the change --- lib/nzbcontents.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/nzbcontents.php b/lib/nzbcontents.php index c2e5d7cc2..ee1a9960e 100644 --- a/lib/nzbcontents.php +++ b/lib/nzbcontents.php @@ -147,7 +147,7 @@ Class NZBcontents if ($nzbfile !== false) { foreach ($nzbfile->file as $nzbcontents) { if (preg_match('/\.(par[2" ]|\d{2,3}").+\(1\/1\)$/i', $nzbcontents->attributes()->subject)) { - if ($this->functions->parsePAR2($nzbcontents->segments->segment, $relID, $groupID, $nntp, $show) === true && $namestatus === 1) { + if ($this->functions->parsePAR2($nzbcontents->segments->segment, $relID, $groupID, $this->nntp, $show) === true && $namestatus === 1) { $this->db->exec(sprintf('UPDATE releases SET proc_par2 = 1 WHERE ID = %d', $relID)); return true; } @@ -210,7 +210,7 @@ Class NZBcontents if ($this->lookuppar2 == 1 && $foundPAR2 === false) { if (preg_match('/\.(par[2" ]|\d{2,3}").+\(1\/1\)$/i', $subject)) { - if ($this->functions->parsePAR2((string)$nzbcontents->segments->segment, $relID, $groupID, $nntp, 1) === true) { + if ($this->functions->parsePAR2((string)$nzbcontents->segments->segment, $relID, $groupID, $this->nntp, 1) === true) { $this->db->exec(sprintf('UPDATE releases SET proc_par2 = 1 WHERE ID = %d', $relID)); $foundPAR2 = true; }