rework autocomplete: add class dir and static function

This commit is contained in:
rabuzarus 2016-02-01 18:21:29 +01:00 committed by Roland Haeder
parent 12479fb478
commit 341a22800d
No known key found for this signature in database
GPG key ID: B72F8185C6C7BD78
3 changed files with 42 additions and 48 deletions

View file

@ -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;
}