mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-21 22:14:22 -04:00
Use limit if it is specified
This commit is contained in:
1 parent
fbd2dd6c58
commit
ce76f953dc
1 file changed
+6
@@ -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