From 9e5f52a0ae0cc3e73e95d39daa679fded775a460 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 29 Nov 2016 15:25:51 -0500 Subject: [PATCH] fix MonitorId is part of event, not frame --- web/includes/Frame.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/includes/Frame.php b/web/includes/Frame.php index dbaeae909..676465d56 100644 --- a/web/includes/Frame.php +++ b/web/includes/Frame.php @@ -70,7 +70,7 @@ class Frame { } 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 public static function find( $parameters = array(), $limit = NULL ) {