another migrated function

This commit is contained in:
Matthew Exon 2022-03-02 17:36:38 +01:00
parent b58ed5cd50
commit d5fbfd2b47

View file

@ -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) == '-') {