X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=util%2Fglobal_community_block.php;h=df50c827badabbe713a490c387aa1086c95b5c47;hb=a64e7a988c54512a905faab10ec16f01ce08db2c;hp=ab586b651017c5ec0acc08a9838b0c187c5dc4b7;hpb=0dce57d4007d7e3cff578825f212a7c0a6cb8800;p=friendica.git diff --git a/util/global_community_block.php b/util/global_community_block.php index ab586b6510..df50c827ba 100755 --- a/util/global_community_block.php +++ b/util/global_community_block.php @@ -29,13 +29,14 @@ if ($argc != 2 || $argv[1] == "-h" || $argv[1] == "--help" || $argv[1] == "-?") } use Friendica\BaseObject; -use Friendica\Object\Contact; +use Friendica\Core\L10n; +use Friendica\Model\Contact; require_once 'boot.php'; require_once 'include/dba.php'; require_once 'include/text.php'; -$a = get_app();; +$a = get_app(); BaseObject::setApp($a); require_once '.htconfig.php'; @@ -44,11 +45,11 @@ unset($db_host, $db_user, $db_pass, $db_data); $contact_id = Contact::getIdForURL($argv[1], 0); if (!$contact_id) { - echo t('Could not find any contact entry for this URL (%s)', $nurl); + echo L10n::t('Could not find any contact entry for this URL (%s)', $nurl); echo "\r\n"; exit(1); } Contact::block($contact_id); -echo t('The contact has been blocked from the node'); +echo L10n::t('The contact has been blocked from the node'); echo "\r\n"; exit(0);