diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2013-02-15 13:00:26 -0500 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2013-02-15 13:00:26 -0500 |
| commit | 96a01c86d9bd15f9dc91c60be6f236deab2ffad9 (patch) | |
| tree | db06b9a5ab2b03a0475f536b9792435059f999e9 /modules/search/controllers | |
| parent | 16b8b8d16b8b46fe1e60b2a86f9ee5883dbc892f (diff) | |
| parent | 5b6c138da1e53e93e4de8079885fcef29d12e673 (diff) | |
Merge branch 'master' into jquery_190
Diffstat (limited to 'modules/search/controllers')
| -rw-r--r-- | modules/search/controllers/search.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/modules/search/controllers/search.php b/modules/search/controllers/search.php index 673a281f..753d9b69 100644 --- a/modules/search/controllers/search.php +++ b/modules/search/controllers/search.php @@ -110,7 +110,14 @@ class Search_Controller extends Controller { Breadcrumb::instance($item->title, $item->url())->set_last())); } - static function get_siblings($q, $album) { - return search::search_within_album(search::add_query_terms($q), $album, 1000, 1)[1]; + static function get_siblings($q, $album, $limit, $offset) { + if (!isset($limit)) { + $limit = 100; + } + if (!isset($offset)) { + $offset = 1; + } + $result = search::search_within_album(search::add_query_terms($q), $album, $limit, $offset); + return $result[1]; } } |
