From 8c8461a88e7baa43fdb593ae9125348c19dfe793 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 20 Jul 2016 15:20:51 -0400 Subject: [PATCH] Update to use Event object and object based createListThumbnail function --- web/skins/classic/views/events.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/skins/classic/views/events.php b/web/skins/classic/views/events.php index be9eaed2d..87e76feaf 100644 --- a/web/skins/classic/views/events.php +++ b/web/skins/classic/views/events.php @@ -98,7 +98,7 @@ foreach ( dbFetchAll( $eventsSql ) as $event ) $events[] = new Event( $event ); # Doesn this code do anything? - $scale = max( reScale( SCALE_BASE, $event->DefaultScale(), ZM_WEB_DEFAULT_SCALE ), SCALE_BASE ); + $scale = max( reScale( SCALE_BASE, $event['DefaultScale'], ZM_WEB_DEFAULT_SCALE ), SCALE_BASE ); $eventWidth = reScale( $event['Width'], $scale ); $eventHeight = reScale( $event['Height'], $scale ); if ( $maxWidth < $eventWidth ) $maxWidth = $eventWidth; @@ -212,14 +212,14 @@ foreach ( $events as $event ) TotScore() ?> AvgScore() ?> Id().'&fid=0', 'zmImage', array( 'image', reScale( $event->Width(), $scale ), reScale( $event->Height(), $scale ) ), $event->MaxScore() ) ?> - DiskSpace() ?> + DiskSpace() ) ?> createListThumbnail() ) { ?> - Width(), $scale ), reScale( $event->Height(), $scale ) ), ''.$thumbData['FrameId'].'/'.$event->MaxScore().'' ) ?> + Id().'&fid='.$thumbData['FrameId'], 'zmImage', array( 'image', reScale( $event->Width(), $scale ), reScale( $event->Height(), $scale ) ), ''.$thumbData['FrameId'].'/'.$event->MaxScore().'' ) ?>