mirror of
https://github.com/friendica/friendica
synced 2025-05-05 17:44:10 +02:00
Many deprecated function calls are replaced
This commit is contained in:
parent
cfad5809ff
commit
60f5fd8188
28 changed files with 61 additions and 71 deletions
|
@ -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);
|
||||
|
|
|
@ -101,7 +101,7 @@ class Proxy
|
|||
return true;
|
||||
}
|
||||
|
||||
return Network::isLocalLink($url);
|
||||
return DI::baseUrl()->isLocalUrl($url);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue