Upate Contacts module file

This commit is contained in:
Jonny Tischbein 2018-10-11 23:41:27 +02:00
parent 80ea86113d
commit ba95487abf

View file

@ -25,9 +25,9 @@ use Friendica\Core\ACL;
use Friendica\Module\Login; use Friendica\Module\Login;
/** /**
* Manages and show Contacts and their content
* *
* * @brief manages contacts
*
*/ */
class Contacts extends BaseModule class Contacts extends BaseModule
{ {
@ -184,7 +184,7 @@ class Contacts extends BaseModule
} }
if ($a->argv[1] === "batch") { if ($a->argv[1] === "batch") {
contacts_batch_actions($a); self::contacts_batch_actions($a);
return; return;
} }
@ -805,7 +805,7 @@ class Contacts extends BaseModule
intval($_SESSION['uid']) intval($_SESSION['uid'])
); );
if (DBA::isResult($r)) { if (DBA::isResult($r)) {
$a->set_pager_total($r[0]['total']); $a->setPagerTotal($r[0]['total']);
$total = $r[0]['total']; $total = $r[0]['total'];
} }
@ -980,7 +980,7 @@ class Contacts extends BaseModule
return $o; return $o;
} }
public static function contact_posts($a, $contact_id) private static function contact_posts($a, $contact_id)
{ {
$contact = DBA::selectFirst('contact', ['uid', 'url', 'id'], ['id' => $contact_id]); $contact = DBA::selectFirst('contact', ['uid', 'url', 'id'], ['id' => $contact_id]);
@ -1134,5 +1134,4 @@ class Contacts extends BaseModule
return $contact_actions; return $contact_actions;
} }
} }