Fix batch action query + Fix Namespace import
This commit is contained in:
parent
5fd4402074
commit
d54e56c659
|
@ -28,7 +28,7 @@ function crepair_init(App $a)
|
||||||
|
|
||||||
if (DBA::isResult($contact)) {
|
if (DBA::isResult($contact)) {
|
||||||
$a->data['contact'] = $contact;
|
$a->data['contact'] = $contact;
|
||||||
Profile::load($a, "", 0, Module\Contact::getDetailsByURL($contact["url"]));
|
Model\Profile::load($a, "", 0, Model\Contact::getDetailsByURL($contact["url"]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -226,7 +226,7 @@ function dirfind_content(App $a, $prefix = "") {
|
||||||
$photo_menu = [];
|
$photo_menu = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
$photo_menu['profile'] = [L10n::t("View Profile"), Module\Contact::magicLink($jj->url)];
|
$photo_menu['profile'] = [L10n::t("View Profile"), Model\Contact::magicLink($jj->url)];
|
||||||
$photo_menu['follow'] = [L10n::t("Connect/Follow"), $connlnk];
|
$photo_menu['follow'] = [L10n::t("Connect/Follow"), $connlnk];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -134,7 +134,7 @@ class Contact extends BaseModule
|
||||||
|
|
||||||
$contacts_id = $_POST['contact_batch'];
|
$contacts_id = $_POST['contact_batch'];
|
||||||
|
|
||||||
$stmt = DBA::select('contact', ['id'], ['id' => $contacts_id, 'id' => local_user(), 'self' => false]);
|
$stmt = DBA::select('contact', ['id'], ['id' => $contacts_id, 'uid' => local_user(), 'self' => false]);
|
||||||
$orig_records = DBA::toArray($stmt);
|
$orig_records = DBA::toArray($stmt);
|
||||||
|
|
||||||
$count_actions = 0;
|
$count_actions = 0;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user