Use the function from the contact template instead
This commit is contained in:
parent
91b0f2c486
commit
893f6bd692
7 changed files with 23 additions and 33 deletions
|
@ -20,12 +20,12 @@
|
|||
*/
|
||||
|
||||
use Friendica\App;
|
||||
use Friendica\Content\ContactSelector;
|
||||
use Friendica\Content\Widget;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\DI;
|
||||
use Friendica\Model\Contact;
|
||||
use Friendica\Module\Contact as ModuleContact;
|
||||
|
||||
function suggest_init(App $a)
|
||||
{
|
||||
|
@ -93,7 +93,7 @@ function suggest_content(App $a)
|
|||
$entries = [];
|
||||
|
||||
foreach ($contacts as $contact) {
|
||||
$entries[] = Contact::getTemplateData($contact, ++$id);
|
||||
$entries[] = ModuleContact::getContactTemplateVars($contact, ++$id);
|
||||
}
|
||||
|
||||
$tpl = Renderer::getMarkupTemplate('viewcontact_template.tpl');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue