forked from friendica/friendica-addons
another migrated function
This commit is contained in:
parent
807d862bcc
commit
c696cb174e
1 changed files with 2 additions and 1 deletions
|
@ -24,6 +24,7 @@ use Friendica\Core\Addon;
|
||||||
use Friendica\Core\Logger;
|
use Friendica\Core\Logger;
|
||||||
use Friendica\Object\Image;
|
use Friendica\Object\Image;
|
||||||
use Friendica\Database\DBA;
|
use Friendica\Database\DBA;
|
||||||
|
use Friendica\Util\Images;
|
||||||
use Friendica\DI;
|
use Friendica\DI;
|
||||||
|
|
||||||
if (!defined('PHOTOTRACK_DEFAULT_BATCH_SIZE')) {
|
if (!defined('PHOTOTRACK_DEFAULT_BATCH_SIZE')) {
|
||||||
|
@ -76,7 +77,7 @@ function phototrack_finished_row($table, $id) {
|
||||||
|
|
||||||
function phototrack_photo_use($photo, $table, $field, $id) {
|
function phototrack_photo_use($photo, $table, $field, $id) {
|
||||||
Logger::debug('@@@ phototrack_photo_use ' . $photo);
|
Logger::debug('@@@ phototrack_photo_use ' . $photo);
|
||||||
foreach (Image::supportedTypes() as $m => $e) {
|
foreach (Images::supportedTypes() as $m => $e) {
|
||||||
$photo = str_replace(".$e", '', $photo);
|
$photo = str_replace(".$e", '', $photo);
|
||||||
}
|
}
|
||||||
if (substr($photo, -2, 1) == '-') {
|
if (substr($photo, -2, 1) == '-') {
|
||||||
|
|
Loading…
Reference in a new issue