X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FBaseSearch.php;h=cc8fab8f7e5619511ad55b9f41f39dbade71e9aa;hb=6e06a7f14cbf909860ba75ccd3a029c8440a28ab;hp=3aae68f7b23f63f004c7c4df5e4710520117b745;hpb=b36d4eb0dd4bdc25a468c95c749bfae1b6324be9;p=friendica.git diff --git a/src/Module/BaseSearch.php b/src/Module/BaseSearch.php index 3aae68f7b2..cc8fab8f7e 100644 --- a/src/Module/BaseSearch.php +++ b/src/Module/BaseSearch.php @@ -1,6 +1,6 @@ isMobile()) { - $itemsPerPage = DI::pConfig()->get(Session::getLocalUser(), 'system', 'itemspage_mobile_network', + $itemsPerPage = DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'system', 'itemspage_mobile_network', DI::config()->get('system', 'itemspage_network_mobile')); } else { - $itemsPerPage = DI::pConfig()->get(Session::getLocalUser(), 'system', 'itemspage_network', + $itemsPerPage = DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'system', 'itemspage_network', DI::config()->get('system', 'itemspage_network')); } @@ -126,14 +125,14 @@ class BaseSearch extends BaseModule // in case the result is a contact result, add a contact-specific entry if ($result instanceof ContactResult) { - $contact = Model\Contact::getByURLForUser($result->getUrl(), Session::getLocalUser()); + $contact = Model\Contact::getByURLForUser($result->getUrl(), DI::userSession()->getLocalUserId()); if (!empty($contact)) { $entries[] = Contact::getContactTemplateVars($contact); } } } - $tpl = Renderer::getMarkupTemplate('viewcontact_template.tpl'); + $tpl = Renderer::getMarkupTemplate('contact/list.tpl'); return Renderer::replaceMacros($tpl, [ 'title' => $header, '$contacts' => $entries,