]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/Text/BBCode.php
Merge pull request #8102 from annando/servertest
[friendica.git] / src / Content / Text / BBCode.php
index fac2b83c17618aa01794e9b7520c425cd3c40cdf..19ff88a9cb04a7ffb31ea6bd9ee4c80569617b4e 100644 (file)
@@ -10,7 +10,6 @@ use DOMXPath;
 use Exception;
 use Friendica\Content\OEmbed;
 use Friendica\Content\Smilies;
-use Friendica\Core\Cache;
 use Friendica\Core\Config;
 use Friendica\Core\Hook;
 use Friendica\Core\L10n;
@@ -438,7 +437,6 @@ class BBCode
 
        public static function scaleExternalImages($srctext)
        {
-               // Picture addresses can contain special characters
                $s = $srctext;
 
                $matches = null;
@@ -1071,7 +1069,7 @@ class BBCode
        private static function removePictureLinksCallback($match)
        {
                $cache_key = 'remove:' . $match[1];
-               $text = Cache::get($cache_key);
+               $text = DI::cache()->get($cache_key);
 
                if (is_null($text)) {
                        $a = DI::app();
@@ -1113,7 +1111,7 @@ class BBCode
                                        }
                                }
                        }
-                       Cache::set($cache_key, $text);
+                       DI::cache()->set($cache_key, $text);
                }
 
                return $text;
@@ -1144,7 +1142,7 @@ class BBCode
                }
 
                $cache_key = 'clean:' . $match[1];
-               $text = Cache::get($cache_key);
+               $text = DI::cache()->get($cache_key);
                if (!is_null($text)) {
                        return $text;
                }
@@ -1195,7 +1193,7 @@ class BBCode
                                }
                        }
                }
-               Cache::set($cache_key, $text);
+               DI::cache()->set($cache_key, $text);
 
                return $text;
        }