]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Contact/Advanced.php
Removed temporary code
[friendica.git] / src / Module / Contact / Advanced.php
index cc9fdcf3d27307f9414e2899c808160551adee5c..be1e874a57939c98af964e20e703970a01914017 100644 (file)
@@ -87,13 +87,11 @@ class Advanced extends BaseModule
                if ($photo) {
                        DI::logger()->notice('Updating photo.', ['photo' => $photo]);
 
-                       Model\Contact::updateAvatar($photo, local_user(), $contact['id'], true);
+                       Model\Contact::updateAvatar($contact['id'], $photo, true);
                }
 
-               if ($r) {
-                       info(DI::l10n()->t('Contact settings applied.') . EOL);
-               } else {
-                       notice(DI::l10n()->t('Contact update failed.') . EOL);
+               if (!$r) {
+                       notice(DI::l10n()->t('Contact update failed.'));
                }
 
                return;
@@ -108,7 +106,7 @@ class Advanced extends BaseModule
                        throw new BadRequestException(DI::l10n()->t('Contact not found.'));
                }
 
-               Model\Profile::load(DI::app(), "", Model\Contact::getDetailsByURL($contact["url"]));
+               Model\Profile::load(DI::app(), "", Model\Contact::getByURL($contact["url"], false));
 
                $warning = DI::l10n()->t('<strong>WARNING: This is highly advanced</strong> and if you enter incorrect information your communications with this contact may stop working.');
                $info    = DI::l10n()->t('Please use your browser \'Back\' button <strong>now</strong> if you are uncertain what to do on this page.');