Skip to content

Commit f6f7bf8

Browse files
authored
Fix: Deprecated format from ${ to {$
1 parent 947cf7b commit f6f7bf8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/views/image.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,9 +517,9 @@ function imagescale($image, $new_width, $new_height = -1, $mode = 0) {
517517
}
518518

519519
# Slight optimisation, thumbnails always specify width and height, so we can cache them.
520-
$scaled_path = preg_replace('/\.jpg$/', "-${width}x${height}.jpg", $path);
520+
$scaled_path = preg_replace('/\.jpg$/', "-{$width}x{$height}.jpg", $path);
521521
if ($Event) {
522-
$filename = $Event->MonitorId().'_'.$Event->Id().'_'.$Frame->FrameId()."-${width}x${height}.jpg";
522+
$filename = $Event->MonitorId().'_'.$Event->Id().'_'.$Frame->FrameId()."-{$width}x{$height}.jpg";
523523
header('Content-Disposition: inline; filename="' . $filename . '"');
524524
}
525525

0 commit comments

Comments
 (0)