Many deprecated function calls are replaced

This commit is contained in:
Michael 2024-05-13 16:19:19 +00:00
parent cfad5809ff
commit 60f5fd8188
28 changed files with 61 additions and 71 deletions

View file

@ -347,7 +347,7 @@ class Images
return $data;
}
if (Network::isLocalLink($url) && ($data = Photo::getResourceData($url))) {
if (DI::baseUrl()->isLocalUrl($url) && ($data = Photo::getResourceData($url))) {
$photo = Photo::selectFirst([], ['resource-id' => $data['guid'], 'scale' => $data['scale']]);
if (!empty($photo)) {
$img_str = Photo::getImageDataForPhoto($photo);

View file

@ -101,7 +101,7 @@ class Proxy
return true;
}
return Network::isLocalLink($url);
return DI::baseUrl()->isLocalUrl($url);
}
/**