Added new search keywords

- tagmin, tagmax
- commentmin, commentmax
This commit is contained in:
Marcin Kurczewski 2013-10-27 23:02:15 +01:00
parent 558f8f42c8
commit e346a8e57c

View file

@ -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)
{