mirror of
https://github.com/friendica/friendica
synced 2025-04-26 18:30:11 +00:00
rework autocomplete: add class dir and static function
This commit is contained in:
parent
12479fb478
commit
341a22800d
3 changed files with 42 additions and 48 deletions
|
@ -659,7 +659,7 @@ function acl_lookup(&$a, $out_type = 'json') {
|
|||
* @brief Searching for global contacts for autocompletion
|
||||
*
|
||||
* @param App $a
|
||||
* @return type
|
||||
* @return array
|
||||
*/
|
||||
function navbar_complete(&$a) {
|
||||
|
||||
|
@ -682,7 +682,7 @@ function navbar_complete(&$a) {
|
|||
$search = substr($search,1);
|
||||
|
||||
if($localsearch) {
|
||||
$x = dirsearch_global_by_name($search);
|
||||
$x = dir::global_search_by_name($search);
|
||||
return $x;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue