]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/Text/BBCode.php
Merge pull request #8019 from nupplaphil/task/replace_getClass
[friendica.git] / src / Content / Text / BBCode.php
index f7ca6efd9783946cfe282afaa59bad7a632770d0..ada0a0f35a424e910ae7588a80615c6364f46f73 100644 (file)
@@ -1152,7 +1152,7 @@ class BBCode
                $a = DI::app();
 
                // When the picture link is the own photo path then we can avoid fetching the link
-               $own_photo_url = preg_quote(Strings::normaliseLink($a->getBaseURL()) . '/photos/');
+               $own_photo_url = preg_quote(Strings::normaliseLink(DI::baseUrl()->get()) . '/photos/');
                if (preg_match('|' . $own_photo_url . '.*?/image/|', Strings::normaliseLink($match[1]))) {
                        if (!empty($match[3])) {
                                $text = '[img=' . str_replace('-1.', '-0.', $match[2]) . ']' . $match[3] . '[/img]';