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
f865087d
Commit
f865087d
authored
Dec 12, 2006
by
Steven Wittens
Browse files
#87241
: Use absolute links for search results, to allow syndication.
parent
991098b9
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/node/node.module
View file @
f865087d
...
...
@@ -919,7 +919,7 @@ function node_search($op = 'search', $keys = NULL) {
$node
->
body
.
=
module_invoke
(
'taxonomy'
,
'nodeapi'
,
$node
,
'update index'
);
$extra
=
node_invoke_nodeapi
(
$node
,
'search result'
);
$results
[]
=
array
(
'link'
=>
url
(
'node/'
.
$item
->
sid
),
$results
[]
=
array
(
'link'
=>
url
(
'node/'
.
$item
->
sid
,
NULL
,
NULL
,
TRUE
),
'type'
=>
node_get_types
(
'name'
,
$node
),
'title'
=>
$node
->
title
,
'user'
=>
theme
(
'username'
,
$node
),
...
...
modules/user/user.module
View file @
f865087d
...
...
@@ -433,7 +433,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
));
$find
[]
=
array
(
'title'
=>
$account
->
name
,
'link'
=>
url
(
'user/'
.
$account
->
uid
,
NULL
,
NULL
,
TRUE
));
}
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