From f2e648308c9f949899991275b77a49d9743aa14b Mon Sep 17 00:00:00 2001 From: Stefan Parviainen Date: Wed, 7 Jan 2015 20:45:00 +0100 Subject: Return results from acl.php in standard form --- mod/acl.php | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'mod/acl.php') diff --git a/mod/acl.php b/mod/acl.php index d263569ce..f575db55b 100644 --- a/mod/acl.php +++ b/mod/acl.php @@ -205,26 +205,6 @@ function acl_init(&$a){ else $r = array(); - - if($type == 'm' || $type == 'a' || $type == 'p') { - $x = array(); - $x['query'] = $search; - $x['photos'] = array(); - $x['links'] = array(); - $x['suggestions'] = array(); - $x['data'] = array(); - if(count($r)) { - foreach($r as $g) { - $x['photos'][] = $g['micro']; - $x['links'][] = $g['url']; - $x['suggestions'][] = $g['name']; - $x['data'][] = (($type === 'p') ? '@' . str_replace(' ','_',$g['name']) : $g['id']); - } - } - echo json_encode($x); - killme(); - } - if(count($r)) { foreach($r as $g){ -- cgit v1.2.3