]> git.mxchange.org Git - friendica.git/blobdiff - mod/viewcontacts.php
Merge pull request #5862 from nupplaphil/rename_App_Methods
[friendica.git] / mod / viewcontacts.php
index 9219f49d9bfaa18fe5312b0b0c2c90bc43907e58..563c13c6d4ada9ccc0242731ff29f650147e38e3 100644 (file)
@@ -17,7 +17,7 @@ use Friendica\Core\System;
 function viewcontacts_init(App $a)
 {
        if (Config::get('system', 'block_public') && !local_user() && !remote_user()) {
-               return;
+               System::httpExit(403, ["title" => L10n::t('Access denied.')]);
        }
 
        if ($a->argc < 2) {
@@ -32,7 +32,7 @@ function viewcontacts_init(App $a)
        );
 
        if (!DBA::isResult($r)) {
-               return;
+               System::httpExit(404, ["title" => L10n::t('Page not found.')]);
        }
 
        $a->data['user'] = $r[0];
@@ -71,7 +71,7 @@ function viewcontacts_content(App $a)
                DBA::escape(Protocol::OSTATUS)
        );
        if (DBA::isResult($r)) {
-               $a->set_pager_total($r[0]['total']);
+               $a->setPagerTotal($r[0]['total']);
        }
 
        $r = q("SELECT * FROM `contact`