Added new search keywords
- tagmin, tagmax - commentmin, commentmax
This commit is contained in:
parent
558f8f42c8
commit
e346a8e57c
1 changed files with 12 additions and 0 deletions
|
@ -846,6 +846,18 @@ class PostController
|
|||
$dbQuery->$andFunc('fav_count ' . $operator . ' ?')->put(intval($val));
|
||||
break;
|
||||
|
||||
case 'tagmin':
|
||||
case 'tagmax':
|
||||
$operator = $key == 'tagmin' ? '>=' : '<=';
|
||||
$dbQuery->$andFunc('tag_count ' . $operator . ' ?')->put(intval($val));
|
||||
break;
|
||||
|
||||
case 'commentmin':
|
||||
case 'commentmax':
|
||||
$operator = $key == 'commentmin' ? '>=' : '<=';
|
||||
$dbQuery->$andFunc('comment_count ' . $operator . ' ?')->put(intval($val));
|
||||
break;
|
||||
|
||||
case 'type':
|
||||
switch ($val)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue