X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Frepair_ostatus.php;h=9504a3fcf481648fd58348b16e002abfcafecef8;hb=b5d2d32b443f7aa8ec6e0e91f36da3cc0a0f2a82;hp=5a6afd9fb4d4853af4391b073789157f553a28fe;hpb=3b80f335fad83fac4cdcf059f4129d5364eb6f90;p=friendica.git diff --git a/mod/repair_ostatus.php b/mod/repair_ostatus.php index 5a6afd9fb4..9504a3fcf4 100644 --- a/mod/repair_ostatus.php +++ b/mod/repair_ostatus.php @@ -1,65 +1,64 @@ . + * */ use Friendica\App; -use Friendica\Core\L10n; use Friendica\Core\Protocol; -use Friendica\Core\System; use Friendica\Database\DBA; +use Friendica\DI; use Friendica\Model\Contact; function repair_ostatus_content(App $a) { - if (! local_user()) { - notice(L10n::t('Permission denied.') . EOL); - $a->internalRedirect('ostatus_repair'); + if (!local_user()) { + notice(DI::l10n()->t('Permission denied.')); + DI::baseUrl()->redirect('ostatus_repair'); // NOTREACHED } - $o = "
".$counter."/".$total.": ".$r[0]["url"]."
"; + $o .= '' . $counter . '/' . $total . ': ' . $contact[0]['url'] . '
'; - $o .= "".L10n::t("Keep this window open until done.")."
"; + $o .= '' . DI::l10n()->t('Keep this window open until done.') . '
'; - $result = Contact::createFromProbe($uid, $r[0]["url"], true); + Contact::createFromProbeForUser($a->getLoggedInUserId(), $contact[0]['url']); - $a->page['htmlhead'] = ''; + DI::page()['htmlhead'] = ''; return $o; }