]> 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 361234fea77820ed8d6192e412e88f0d7c0d076f..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)
@@ -14,13 +13,13 @@ function update_contact_content(App $a)
        echo "<section>";
 
        if ($_GET["force"] == 1) {
-               $text = Contact::content($a, true);
+               $text = Contact::content([], true);
        } else {
                $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";
@@ -34,5 +33,5 @@ function update_contact_content(App $a)
        echo str_replace("\t", "       ", $text);
        echo "</section>";
        echo "</body></html>\r\n";
-       killme();
+       exit();
 }