forked from friendica/friendica-addons
another migrated function
This commit is contained in:
parent
b58ed5cd50
commit
d5fbfd2b47
|
@ -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) == '-') {
|
||||
|
|
Loading…
Reference in a new issue