mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-05-19 03:56:18 -04:00
Use limit if it is specified
This commit is contained in:
@@ -82,9 +82,15 @@ class EventsController extends AppController {
|
||||
// TODO: Implement request based limits.
|
||||
|
||||
# 'limit' => '100',
|
||||
|
||||
|
||||
'order' => array('StartDateTime'),
|
||||
'paramType' => 'querystring',
|
||||
);
|
||||
if ($this->request->query('limit')) {
|
||||
$settings['limit'] = $this->request->query('limit');
|
||||
}
|
||||
|
||||
if ( isset($conditions['GroupId']) ) {
|
||||
$settings['joins'] = array(
|
||||
array(
|
||||
|
||||
Reference in New Issue
Block a user