aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-01-31 19:49:56 -0800
committerFriendika <info@friendika.com>2011-01-31 19:49:56 -0800
commite2544abd503ddcbd98a31c75b528aac0c980df35 (patch)
tree992879600971dcc22a28b0c2dbfe96a55f22cda0 /include
parent837cce8a75e884f76a67aef5ee47a9363b96fbcc (diff)
downloadvolse-hubzilla-e2544abd503ddcbd98a31c75b528aac0c980df35.tar.gz
volse-hubzilla-e2544abd503ddcbd98a31c75b528aac0c980df35.tar.bz2
volse-hubzilla-e2544abd503ddcbd98a31c75b528aac0c980df35.zip
truncate names in acl selector
Diffstat (limited to 'include')
-rw-r--r--include/acl_selectors.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/acl_selectors.php b/include/acl_selectors.php
index 554782a82..63756ce3e 100644
--- a/include/acl_selectors.php
+++ b/include/acl_selectors.php
@@ -17,8 +17,9 @@ function group_select($selname,$selclass,$preselected = false,$size = 4) {
$selected = " selected=\"selected\" ";
else
$selected = '';
+ $trimmed = substr($rr['name'],0,12);
- $o .= "<option value=\"{$rr['id']}\" $selected >{$rr['name']}</option>\r\n";
+ $o .= "<option value=\"{$rr['id']}\" $selected title=\"{$rr['name']}\" >$trimmed</option>\r\n";
}
}
@@ -66,7 +67,9 @@ function contact_select($selname, $selclass, $preselected = false, $size = 4, $p
else
$selected = '';
- $o .= "<option value=\"{$rr['id']}\" $selected title=\"{$rr['url']}\" >{$rr['name']}</option>\r\n";
+ $trimmed = substr($rr['name'],0,24);
+
+ $o .= "<option value=\"{$rr['id']}\" $selected title=\"{$rr['name']}|{$rr['url']}\" >$trimmed</option>\r\n";
}
}