Fix wrong categorization.

This commit is contained in:
Darko
2015-02-24 10:32:11 +01:00
parent 8c9f96a8e9
commit 8cdcf85f8a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2266,7 +2266,7 @@ Class ProcessAdditional
}
// Get a new category ID.
$newCategory = $this->_categorize->determineCategory($newName, $this->_release['groupID']);
$newCategory = $this->_categorize->determineCategory($this->_release['groupID'], $newName);
$newTitle = $this->pdo->escapeString(substr($newName, 0, 255));
// Update the release with the data.
@@ -601,7 +601,7 @@ class ProcessReleases
'postdate' => $this->pdo->escapeString($collection['date']),
'fromname' => $fromName,
'size' => $collection['filesize'],
'categoryID' => $categorize->determineCategory($cleanedName, $collection['group_id']),
'categoryID' => $categorize->determineCategory($collection['group_id'], $cleanedName),
'isrenamed' => ($properName === true ? 1 : 0),
'reqidstatus' => ($isReqID === true ? 1 : 0),
'prehashID' => ($preID === false ? 0 : $preID),