aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Parviainen <saparvia@caterva.eu>2015-01-07 20:45:00 +0100
committerStefan Parviainen <saparvia@caterva.eu>2015-01-07 20:45:00 +0100
commitf2e648308c9f949899991275b77a49d9743aa14b (patch)
tree61b68a07e361c8383d8f8fa534ddc76f67413844
parentc9b15bbab530264c4d5e1a648fc62153843b0618 (diff)
downloadvolse-hubzilla-f2e648308c9f949899991275b77a49d9743aa14b.tar.gz
volse-hubzilla-f2e648308c9f949899991275b77a49d9743aa14b.tar.bz2
volse-hubzilla-f2e648308c9f949899991275b77a49d9743aa14b.zip
Return results from acl.php in standard form
-rw-r--r--mod/acl.php20
1 files changed, 0 insertions, 20 deletions
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){