]> 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 bea33b4841f96286ffd4c9ff4a86b93c5a0e23fa..bd9ced0e9a44a5dc392f0ab2c5759111b0076c83 100644 (file)
@@ -3,8 +3,7 @@
 // See update_profile.php for documentation
 
 use Friendica\App;
-use Friendica\Core\L10n;
-use Friendica\Core\PConfig;
+use Friendica\DI;
 use Friendica\Module\Contact;
 
 function update_contact_content(App $a)
@@ -19,8 +18,8 @@ function update_contact_content(App $a)
                $text = '';
        }
 
-       if (PConfig::get(local_user(), "system", "bandwidth_saver")) {
-               $replace = "<br />".L10n::t("[Embedded content - reload page to view]")."<br />";
+       if (DI::pConfig()->get(local_user(), "system", "bandwidth_saver")) {
+               $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";