mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-27 16:58:31 -04:00
Don't do pagination in events.This may break users of API but pagination should only happen if asked for
This commit is contained in:
1 parent
9d0f2c25bb
commit
d97b37f83f
1 file changed
+2
-11
@@ -99,17 +99,8 @@ class EventsController extends AppController {
|
||||
}
|
||||
$settings['conditions'] = array($conditions, $mon_options);
|
||||
|
||||
// How many events to return
|
||||
$this->loadModel('Config');
|
||||
$limit = $this->Config->find('list', array(
|
||||
'conditions' => array('Name' => 'ZM_WEB_EVENTS_PER_PAGE'),
|
||||
'fields' => array('Name', 'Value')
|
||||
));
|
||||
$this->Paginator->settings = $settings;
|
||||
$events = $this->Paginator->paginate('Event');
|
||||
|
||||
// For each event, get the frameID which has the largest score
|
||||
// also add FS path
|
||||
$events = $this->Event->find('all', $settings);
|
||||
// For each event, get the frameID which has the largest score also add FS path
|
||||
|
||||
foreach ( $events as $key => $value ) {
|
||||
$EventObj = new ZM\Event($value['Event']);
|
||||
|
||||
Reference in new issue
Block a user