- #28154: remove useless /view from user results

4.7.x
Steven Wittens 2005-08-03 23:23:48 +00:00
parent e545feff3e
commit 3feef48da2
2 changed files with 2 additions and 2 deletions

View File

@ -454,7 +454,7 @@ function user_search($op = 'search', $keys = null) {
$keys = preg_replace('!\*+!', '%', $keys);
$result = pager_query("SELECT * FROM {users} WHERE LOWER(name) LIKE LOWER('%%%s%%')", 15, 0, NULL, $keys);
while ($account = db_fetch_object($result)) {
$find[] = array('title' => $account->name, 'link' => url("user/$account->uid/view"));
$find[] = array('title' => $account->name, 'link' => url('user/'. $account->uid));
}
return $find;
}

View File

@ -454,7 +454,7 @@ function user_search($op = 'search', $keys = null) {
$keys = preg_replace('!\*+!', '%', $keys);
$result = pager_query("SELECT * FROM {users} WHERE LOWER(name) LIKE LOWER('%%%s%%')", 15, 0, NULL, $keys);
while ($account = db_fetch_object($result)) {
$find[] = array('title' => $account->name, 'link' => url("user/$account->uid/view"));
$find[] = array('title' => $account->name, 'link' => url('user/'. $account->uid));
}
return $find;
}