]> git.mxchange.org Git - friendica.git/blobdiff - mod/update_contact.php
Force avatar update for Contact Advanced page
[friendica.git] / mod / update_contact.php
index 5092dd835cb96ff3f1bd3b455f2ba622a017f33e..bd9ced0e9a44a5dc392f0ab2c5759111b0076c83 100644 (file)
@@ -3,7 +3,6 @@
 // See update_profile.php for documentation
 
 use Friendica\App;
-use Friendica\Core\L10n;
 use Friendica\DI;
 use Friendica\Module\Contact;
 
@@ -20,7 +19,7 @@ function update_contact_content(App $a)
        }
 
        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";