From b4f2aac7e76d8d8a8330ade4116a015593f001a6 Mon Sep 17 00:00:00 2001 From: Friendika Date: Tue, 1 Feb 2011 14:09:47 -0800 Subject: [PATCH] truncate long names --- mod/contacts.php | 2 +- mod/viewcontacts.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/contacts.php b/mod/contacts.php index 4c627c88f9..61d9ce3986 100644 --- a/mod/contacts.php +++ b/mod/contacts.php @@ -367,7 +367,7 @@ function contacts_content(&$a) { '$alt_text' => $alt_text, '$dir_icon' => $dir_icon, '$thumb' => $rr['thumb'], - '$name' => $rr['name'], + '$name' => substr($rr['name'],0,20), '$sparkle' => $sparkle, '$url' => $url )); diff --git a/mod/viewcontacts.php b/mod/viewcontacts.php index bd73b2ffbe..90ff85b9db 100644 --- a/mod/viewcontacts.php +++ b/mod/viewcontacts.php @@ -43,7 +43,7 @@ function viewcontacts_content(&$a) { '$id' => $rr['id'], '$alt_text' => t('Visit ') . $rr['name'] . t('\'s profile'), '$thumb' => $rr['thumb'], - '$name' => $rr['name'], + '$name' => substr($rr['name'],0,20), '$url' => $rr['url'] )); }