slice entries before view

This commit is contained in:
Uwe Steinmann 2018-01-23 16:46:10 +01:00
parent 81b8d2ae1b
commit cde0f066ad
2 changed files with 3 additions and 3 deletions

View File

@ -406,7 +406,7 @@ if(isset($_GET["fullsearch"]) && $_GET["fullsearch"] && $settings->_enableFullSe
$totalPages = (int) (count($entries)/$limit); $totalPages = (int) (count($entries)/$limit);
if(count($entries)%$limit) if(count($entries)%$limit)
$totalPages++; $totalPages++;
// $entries = array_slice($entries, ($pageNumber-1)*$limit, $limit); $entries = array_slice($entries, ($pageNumber-1)*$limit, $limit);
} }
// }}} // }}}
} }

View File

@ -160,8 +160,8 @@ $(document).ready( function() {
} }
} }
if ($pageNumber != 'all') // if ($pageNumber != 'all')
$entries = array_slice($entries, ($pageNumber-1)*$limit, $limit); // $entries = array_slice($entries, ($pageNumber-1)*$limit, $limit);
$this->htmlAddHeader('<script type="text/javascript" src="../styles/'.$this->theme.'/bootbox/bootbox.min.js"></script>'."\n", 'js'); $this->htmlAddHeader('<script type="text/javascript" src="../styles/'.$this->theme.'/bootbox/bootbox.min.js"></script>'."\n", 'js');