fix MonitorId is part of event, not frame

This commit is contained in:
Isaac Connor 2016-11-29 15:25:51 -05:00
parent 2adb17ad90
commit 9e5f52a0ae
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ class Frame {
} }
public function getImageSrc( $show='capture' ) { public function getImageSrc( $show='capture' ) {
return $_SERVER['PHP_SELF'].'?view=image&fid='.$this->{'Id'}.'&show='.$show.'&filename='.$this->{'MonitorId'}.'_'.$this->{'EventId'}.'_'.$this->{'FrameId'}.'.jpg'; return $_SERVER['PHP_SELF'].'?view=image&fid='.$this->{'Id'}.'&show='.$show.'&filename='.$this->Event()->MonitorId().'_'.$this->{'EventId'}.'_'.$this->{'FrameId'}.'.jpg';
} // end function getImageSrc } // end function getImageSrc
public static function find( $parameters = array(), $limit = NULL ) { public static function find( $parameters = array(), $limit = NULL ) {