diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-08-03 23:23:48 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-08-03 23:23:48 +0000 |
commit | 3feef48da221d7ff2ea0c120b83a81d1266ed3c6 (patch) | |
tree | 5da4f9c0a937b873b84f7a386ffaffa0c40edcb1 | |
parent | e545feff3e989edee301975a890aae8794ab954a (diff) | |
download | brdo-3feef48da221d7ff2ea0c120b83a81d1266ed3c6.tar.gz brdo-3feef48da221d7ff2ea0c120b83a81d1266ed3c6.tar.bz2 |
- #28154: remove useless /view from user results
-rw-r--r-- | modules/user.module | 2 | ||||
-rw-r--r-- | modules/user/user.module | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/user.module b/modules/user.module index 6fba6771d..12303ff22 100644 --- a/modules/user.module +++ b/modules/user.module @@ -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; } diff --git a/modules/user/user.module b/modules/user/user.module index 6fba6771d..12303ff22 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -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; } |