Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
3feef48d
Commit
3feef48d
authored
Aug 03, 2005
by
Steven Wittens
Browse files
-
#28154
: remove useless /view from user results
parent
e545feff
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/user.module
View file @
3feef48d
...
...
@@ -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
;
}
...
...
modules/user/user.module
View file @
3feef48d
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment