Drupal: Added space between username and BOINC id in autocomplete box.

This commit is contained in:
Shawn Kwang 2017-10-26 10:07:57 -05:00
parent 6ec195ca8a
commit dbd7c7707d
1 changed files with 1 additions and 1 deletions

View File

@ -1438,7 +1438,7 @@ function privatemsg_user_name_autocomplete($string) {
// 3: Build proper suggestions and print.
while ($user = db_fetch_object($result)) {
$myname = preg_replace("/ /", "\xc2\xa0", $user->name);
$matches[$prefix . $myname . "_" . $user->id . ', '] = htmlentities($myname) . '(' . $user->id . ')';
$matches[$prefix . $myname . "_" . $user->id . ', '] = htmlentities($myname) . ' (' . $user->id . ')';
}
}
// convert to object to prevent drupal bug, see http://drupal.org/node/175361