]> git.mxchange.org Git - friendica.git/blobdiff - mod/update_display.php
Merge pull request #8178 from nupplaphil/task/mod_noscrape
[friendica.git] / mod / update_display.php
index 569c76ab31f0433a43645cec12c73ccb2e079a92..b8f3d8f498e64503c4df7f7eba65f12e459f2253 100644 (file)
@@ -5,7 +5,6 @@
  */
 
 use Friendica\App;
-use Friendica\Core\L10n;
 use Friendica\DI;
 
 require_once "mod/display.php";
@@ -21,7 +20,7 @@ function update_display_content(App $a)
        $text = display_content($a, true, $profile_uid);
 
        if (DI::pConfig()->get(local_user(), "system", "bandwidth_saver")) {
-               $replace = "<br />" . L10n::t("[Embedded content - reload page to view]") . "<br />";
+               $replace = "<br />" . DI::l10n()->t("[Embedded content - reload page to view]") . "<br />";
                $pattern = "/<\s*audio[^>]*>(.*?)<\s*\/\s*audio>/i";
                $text = preg_replace($pattern, $replace, $text);
                $pattern = "/<\s*video[^>]*>(.*?)<\s*\/\s*video>/i";