]> git.mxchange.org Git - friendica.git/blobdiff - mod/search.php
cleanup untracked files
[friendica.git] / mod / search.php
index a6a4b613fcb5b87a3cff55dce47f24e2f5ddc516..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;
        }
 
@@ -113,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,
@@ -133,13 +134,6 @@ function search_content(&$a) {
                }
        }
 
-
-       if(! $r[0]['total']) {
-               notice('No results.');
-               return $o;
-       }
-
-
        $o .= paginate($a);
 
        return $o;