]> git.mxchange.org Git - friendica.git/blobdiff - mod/search.php
cleanup untracked files
[friendica.git] / mod / search.php
index 20113e75bcf5c014b1f78d9b1ecb2061e4160f2a..db7279fb5609987846fdf34656cf8328deeb15cf 100644 (file)
@@ -51,7 +51,7 @@ function search_content(&$a) {
                $a->set_pager_total($r[0]['total']);
 
        if(! $r[0]['total']) {
-               notice('No results.');
+               notice( t('No results.') . EOL);
                return $o;
        }
 
@@ -81,6 +81,7 @@ function search_content(&$a) {
 
                foreach($r as $item) {
 
+                       $total       = 0;
                        $comment     = '';
                        $owner_url   = '';
                        $owner_photo = '';
@@ -91,6 +92,8 @@ function search_content(&$a) {
                                && ($item['id'] != $item['parent']))
                                continue;
 
+                       $total ++;
+
                        $profile_name   = ((strlen($item['author-name']))   ? $item['author-name']   : $item['name']);
                        $profile_avatar = ((strlen($item['author-avatar'])) ? $item['author-avatar'] : $item['thumb']);
                        $profile_link   = ((strlen($item['author-link']))   ? $item['author-link']   : $item['url']);
@@ -110,6 +113,7 @@ function search_content(&$a) {
 
                        $o .= replace_macros($tpl,array(
                                '$id' => $item['item_id'],
+                               '$linktitle' => t('View $name\'s profile'),
                                '$profile_url' => $profile_link,
                                '$name' => $profile_name,
                                '$sparkle' => $sparkle,