aboutsummaryrefslogtreecommitdiffstats
path: root/mod/acl.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-05-10 19:29:01 -0700
committerfriendica <info@friendica.com>2012-05-10 19:29:01 -0700
commit547007e1993a21347db327f5c030dd1dac60f28f (patch)
treedb1c069036fb741d77d0dc6de1612c815a0466e0 /mod/acl.php
parent01b5136007ee853a22205b87433f94640d3aceac (diff)
downloadvolse-hubzilla-547007e1993a21347db327f5c030dd1dac60f28f.tar.gz
volse-hubzilla-547007e1993a21347db327f5c030dd1dac60f28f.tar.bz2
volse-hubzilla-547007e1993a21347db327f5c030dd1dac60f28f.zip
add photos to PM autocomplete, improved appearance
Diffstat (limited to 'mod/acl.php')
-rw-r--r--mod/acl.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/mod/acl.php b/mod/acl.php
index 402d37376..168b1f59f 100644
--- a/mod/acl.php
+++ b/mod/acl.php
@@ -127,12 +127,15 @@ function acl_init(&$a){
if($type == 'm') {
$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['suggestions'][] = sprintf( t('%s [%s]'),$g['name'],$g['url']);
- // '<img src="' . $g['micro'] . ' height="16" width="16" alt="' . t('Image/photo') . '" />' .
+ $x['photos'][] = $g['micro'];
+ $x['links'][] = $g['url'];
+ $x['suggestions'][] = $g['name']; // sprintf( t('%s [%s]'),$g['name'],$g['url']);
$x['data'][] = intval($g['id']);
}
}