mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Small change in classes
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
@@ -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,
|
||||
|
||||
@@ -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
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user