]> git.mxchange.org Git - friendica.git/blobdiff - util/global_community_block.php
Merge pull request #4637 from tobiasd/3.6
[friendica.git] / util / global_community_block.php
index 87044bb4e439599062de34287cc59aa91bbc194c..02f0c53ec0426ee6a9c21372e86ab235f1dcea1e 100755 (executable)
@@ -29,26 +29,27 @@ if ($argc != 2 || $argv[1] == "-h" || $argv[1] == "--help" || $argv[1] == "-?")
 }
 
 use Friendica\BaseObject;
+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';
 dba::connect($db_host, $db_user, $db_pass, $db_data);
 unset($db_host, $db_user, $db_pass, $db_data);
 
-$contact_id = Contact::getIdForURL($argv[1], 0);
+$contact_id = Contact::getIdForURL($argv[1]);
 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);