]> git.mxchange.org Git - friendica.git/blobdiff - mod/crepair.php
Misspelling in use statement
[friendica.git] / mod / crepair.php
index 13885cb49106adc94b44a2f1d60dd4a50c5e9cdd..1ca04af50dc2bce40e2e56ba1d2ac03228a2a702 100644 (file)
@@ -6,6 +6,7 @@
 use Friendica\App;
 use Friendica\Core\Config;
 use Friendica\Core\L10n;
+use Friendica\Core\Logger;
 use Friendica\Core\Protocol;
 use Friendica\Database\DBA;
 use Friendica\Model;
@@ -78,7 +79,7 @@ function crepair_post(App $a)
        );
 
        if ($photo) {
-               logger('mod-crepair: updating photo from ' . $photo);
+               Logger::log('mod-crepair: updating photo from ' . $photo);
 
                Model\Contact::updateAvatar($photo, local_user(), $contact['id']);
        }
@@ -114,7 +115,7 @@ function crepair_content(App $a)
        $warning = L10n::t('<strong>WARNING: This is highly advanced</strong> and if you enter incorrect information your communications with this contact may stop working.');
        $info = L10n::t('Please use your browser \'Back\' button <strong>now</strong> if you are uncertain what to do on this page.');
 
-       $returnaddr = "contacts/$cid";
+       $returnaddr = "contact/$cid";
 
        $allow_remote_self = Config::get('system', 'allow_users_remote_self');