]> git.mxchange.org Git - friendica.git/commitdiff
truncate long names
authorFriendika <info@friendika.com>
Tue, 1 Feb 2011 22:09:47 +0000 (14:09 -0800)
committerFriendika <info@friendika.com>
Tue, 1 Feb 2011 22:09:47 +0000 (14:09 -0800)
mod/contacts.php
mod/viewcontacts.php

index 4c627c88f91ceba6f906eb82ccdb6c74b793eea9..61d9ce3986f49056147d353e9c088ab050444a4c 100644 (file)
@@ -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
                        ));
index bd73b2ffbe837d1e657ca8aba9e6536d0c3e3057..90ff85b9dbd4476c3534a6138b108f1d6608d613 100644 (file)
@@ -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'] 
                ));
        }