summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2005-08-03 23:23:48 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2005-08-03 23:23:48 +0000
commit3feef48da221d7ff2ea0c120b83a81d1266ed3c6 (patch)
tree5da4f9c0a937b873b84f7a386ffaffa0c40edcb1
parente545feff3e989edee301975a890aae8794ab954a (diff)
downloadbrdo-3feef48da221d7ff2ea0c120b83a81d1266ed3c6.tar.gz
brdo-3feef48da221d7ff2ea0c120b83a81d1266ed3c6.tar.bz2
- #28154: remove useless /view from user results
-rw-r--r--modules/user.module2
-rw-r--r--modules/user/user.module2
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;
}