mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-11 09:34:26 +02:00
Remove deprecated App::getBaseURL() - process methods to DI::baseUrl()->get()
This commit is contained in:
parent
e57a87f224
commit
e944d7bed6
43 changed files with 76 additions and 120 deletions
|
@ -679,8 +679,7 @@ class Photo
|
|||
*/
|
||||
public static function getGUID($name)
|
||||
{
|
||||
$a = \get_app();
|
||||
$base = $a->getBaseURL();
|
||||
$base = DI::baseUrl()->get();
|
||||
|
||||
$guid = str_replace([Strings::normaliseLink($base), '/photo/'], '', Strings::normaliseLink($name));
|
||||
|
||||
|
@ -725,8 +724,7 @@ class Photo
|
|||
*/
|
||||
public static function isLocalPage($name)
|
||||
{
|
||||
$a = \get_app();
|
||||
$base = $a->getBaseURL();
|
||||
$base = DI::baseUrl()->get();
|
||||
|
||||
$guid = str_replace(Strings::normaliseLink($base), '', Strings::normaliseLink($name));
|
||||
$guid = preg_replace("=/photos/.*/image/(.*)=ism", '$1', $guid);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue