summaryrefslogtreecommitdiff
path: root/includes/search.inc
diff options
context:
space:
mode:
authornatrak <>2001-07-25 12:21:48 +0000
committernatrak <>2001-07-25 12:21:48 +0000
commitd016fb14f43976ba184d3e0597065b15f5eca1f0 (patch)
treed3303a5c55095cdbbc94926274a1512b1b85387c /includes/search.inc
parente0dc03dccd90fb6dc0130233719f74429a547cd4 (diff)
downloadbrdo-d016fb14f43976ba184d3e0597065b15f5eca1f0.tar.gz
brdo-d016fb14f43976ba184d3e0597065b15f5eca1f0.tar.bz2
common.inc
- format_username() now takes a second optional parameter which gives the real name of the user. Rest - updated the calls to format_username() where appropriate to show the name of the user instead of the account id. Clicking on a name will still give you the account info etc. If you find a place where the real name is not shown let me know.
Diffstat (limited to 'includes/search.inc')
-rw-r--r--includes/search.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/search.inc b/includes/search.inc
index e3cd239c3..5be56fb48 100644
--- a/includes/search.inc
+++ b/includes/search.inc
@@ -14,7 +14,7 @@ function search_data($keys, $type) {
foreach ($result as $entry) {
$output .= "<p>\n";
$output .= " <b><u><a href=\"$entry[link]\" />$entry[title]</a></u></b><br />";
- $output .= " <small>$entry[link]". ($entry[user] ? " - ". format_username($entry[user]) : "") ."". ($entry[date] ? " - ". format_date($entry[date], "small") : "") ."</small>";
+ $output .= " <small>$entry[link]". ($entry[user] ? " - ". format_username($entry[user], $entry[name]) : "") ."". ($entry[date] ? " - ". format_date($entry[date], "small") : "") ."</small>";
$output .= "</p>\n";
}
}