From 4d05cebc40b5d8e1be83d4ae64edc1da7ee38714 Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Sun, 25 Dec 2022 14:06:54 +0100 Subject: [PATCH] PhotoMosaic: address deprecation notice in usort call --- models/PhotoMosaic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/PhotoMosaic.php b/models/PhotoMosaic.php index 9d4c522..605bdb0 100644 --- a/models/PhotoMosaic.php +++ b/models/PhotoMosaic.php @@ -114,7 +114,7 @@ class PhotoMosaic } // Sort photos by priority and date captured. - usort($photos, 'self::orderPhotos'); + usort($photos, self::orderPhotos(...)); // Three portraits? if ($num_portrait === 3)