From c696cb174e93c7bdb0618995a757f2b8fc4d1967 Mon Sep 17 00:00:00 2001 From: Matthew Exon Date: Wed, 2 Mar 2022 17:36:38 +0100 Subject: [PATCH] another migrated function --- phototrack/phototrack.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phototrack/phototrack.php b/phototrack/phototrack.php index 1b8ad738..ef2cb154 100644 --- a/phototrack/phototrack.php +++ b/phototrack/phototrack.php @@ -24,6 +24,7 @@ use Friendica\Core\Addon; use Friendica\Core\Logger; use Friendica\Object\Image; use Friendica\Database\DBA; +use Friendica\Util\Images; use Friendica\DI; if (!defined('PHOTOTRACK_DEFAULT_BATCH_SIZE')) { @@ -76,7 +77,7 @@ function phototrack_finished_row($table, $id) { function phototrack_photo_use($photo, $table, $field, $id) { Logger::debug('@@@ phototrack_photo_use ' . $photo); - foreach (Image::supportedTypes() as $m => $e) { + foreach (Images::supportedTypes() as $m => $e) { $photo = str_replace(".$e", '', $photo); } if (substr($photo, -2, 1) == '-') {