mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-01-30 19:52:17 +01:00
Fixup use of OC_Helper::linkTo function
This commit is contained in:
parent
e1ff1fdebb
commit
ad9b912e10
@ -18,7 +18,7 @@ class OC_Search_Provider_Contacts extends OC_Search_Provider{
|
|||||||
$vcards = OC_Contacts_VCard::all($addressbook['id']);
|
$vcards = OC_Contacts_VCard::all($addressbook['id']);
|
||||||
foreach($vcards as $vcard){
|
foreach($vcards as $vcard){
|
||||||
if(substr_count(strtolower($vcard['fullname']), strtolower($query)) > 0){
|
if(substr_count(strtolower($vcard['fullname']), strtolower($query)) > 0){
|
||||||
$link = OC_Helper::linkTo('apps/contacts', 'index.php?id='.urlencode($vcard['id']));
|
$link = OC_Helper::linkTo('contacts', 'index.php').'?id='.urlencode($vcard['id']);
|
||||||
$results[]=new OC_Search_Result($vcard['fullname'],'', $link,$l->t('Contact'));//$name,$text,$link,$type
|
$results[]=new OC_Search_Result($vcard['fullname'],'', $link,$l->t('Contact'));//$name,$text,$link,$type
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user