mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:37:02 +02:00
added download all hits feature
This commit is contained in:
@ -13,6 +13,8 @@ class ModelSearchSearch extends Model {
|
||||
$s = "";
|
||||
$all_ids_csv = "";
|
||||
|
||||
$session = Registry::get('session');
|
||||
|
||||
while(list($k,$v) = each($data)) {
|
||||
if($v) { $s .= '&' . $k . '=' . $v; }
|
||||
}
|
||||
@ -56,6 +58,12 @@ class ModelSearchSearch extends Model {
|
||||
$total_hits = count($all_ids);
|
||||
|
||||
|
||||
if($total_hits > 0) {
|
||||
$session->set('last_search', serialize($all_ids));
|
||||
} else {
|
||||
$session->set('last_search', '');
|
||||
}
|
||||
|
||||
$data['page_len'] = get_page_length();
|
||||
|
||||
if($total_hits > 0) {
|
||||
|
Reference in New Issue
Block a user