Small change in classes

This commit is contained in:
DariusIII
2017-05-22 10:39:31 +02:00
parent 9128b38558
commit 31f2e69aba
4 changed files with 7 additions and 26 deletions
+1
View File
@@ -1,4 +1,5 @@
2017-05-22 DariusIII
* Chg: Small change in classes
* Chg: Update search page
2017-15-19 DariusIII
* Chg: Replace $this->colorcli with ColorCLI:: in Groups class
+2 -2
View File
@@ -126,7 +126,7 @@ class ReleaseSearch
*
* @return string
*/
private function likeSQL(): string
private function likeSQL()
{
$return = '';
foreach ($this->searchOptions as $columnName => $searchString) {
@@ -154,7 +154,7 @@ class ReleaseSearch
*
* @return string
*/
private function sphinxSQL(): string
private function sphinxSQL()
{
$searchQuery = $fullReturn = '';
+2 -22
View File
@@ -799,34 +799,14 @@ class Releases
* @param int $limit
* @param string|array $orderBy
* @param int $maxAge
* @param integer[] $excludedCats
* @param integer|array $excludedCats
* @param string $type
* @param array $cat
*
* @param int $minSize
* @return array
*/
public function search(
$searchName,
$usenetName,
$posterName,
$fileName,
$groupName,
$sizeFrom,
$sizeTo,
$hasNfo,
$hasComments,
$daysNew,
$daysOld,
$offset = 0,
$limit = 1000,
$orderBy = '',
$maxAge = -1,
$excludedCats = [],
$type = 'basic',
$cat = [-1],
$minSize = 0
) {
public function search($searchName, $usenetName, $posterName, $fileName, $groupName, $sizeFrom, $sizeTo, $hasNfo, $hasComments, $daysNew, $daysOld, $offset = 0, $limit = 1000, $orderBy = '', $maxAge = -1, $excludedCats = [], $type = 'basic', $cat = [-1], $minSize = 0) {
$sizeRange = [
1 => 1,
2 => 2.5,
+2 -2
View File
@@ -54,8 +54,8 @@ if ((isset($_REQUEST['id']) || isset($_REQUEST['subject'])) && !isset($_REQUEST[
}
foreach ($releases->getBrowseOrdering() as $orderType) {
$page->smarty->assign(
"orderby$orderType",
WWW_TOP . '/search/' . htmlentities($searchString) . '?t=' . implode(',', $categoryID) . "&ob=$orderType"
'orderby' . $orderType,
WWW_TOP . '/search/' . htmlentities($searchString) . '?t=' . implode(',', $categoryID) . '&ob='. $orderType
);
}