Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
cfaa4b5f
Commit
cfaa4b5f
authored
Jul 26, 2006
by
drumm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#64857
by pwolanin, allow search to index all content
parent
921128af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
modules/node/node.module
modules/node/node.module
+3
-2
No files found.
modules/node/node.module
View file @
cfaa4b5f
...
...
@@ -361,12 +361,13 @@ function node_load($param = array(), $revision = NULL, $reset = NULL) {
}
// Retrieve the node.
// No db_rewrite_sql is applied so as to get complete indexing for search.
if
(
$revision
)
{
array_unshift
(
$arguments
,
$revision
);
$node
=
db_fetch_object
(
db_query
(
db_rewrite_sql
(
'SELECT n.nid, r.vid, n.type, n.status, n.created, n.changed, n.comment, n.promote, n.sticky, r.timestamp AS revision_timestamp, r.title, r.body, r.teaser, r.log, r.format, u.uid, u.name, u.picture, u.data FROM {node} n INNER JOIN {users} u ON u.uid = n.uid INNER JOIN {node_revisions} r ON r.nid = n.nid AND r.vid = %d WHERE '
.
$cond
)
,
$arguments
));
$node
=
db_fetch_object
(
db_query
(
'SELECT n.nid, r.vid, n.type, n.status, n.created, n.changed, n.comment, n.promote, n.sticky, r.timestamp AS revision_timestamp, r.title, r.body, r.teaser, r.log, r.format, u.uid, u.name, u.picture, u.data FROM {node} n INNER JOIN {users} u ON u.uid = n.uid INNER JOIN {node_revisions} r ON r.nid = n.nid AND r.vid = %d WHERE '
.
$cond
,
$arguments
));
}
else
{
$node
=
db_fetch_object
(
db_query
(
db_rewrite_sql
(
'SELECT n.nid, n.vid, n.type, n.status, n.created, n.changed, n.comment, n.promote, n.sticky, r.timestamp AS revision_timestamp, r.title, r.body, r.teaser, r.log, r.format, u.uid, u.name, u.picture, u.data FROM {node} n INNER JOIN {users} u ON u.uid = n.uid INNER JOIN {node_revisions} r ON r.vid = n.vid WHERE '
.
$cond
)
,
$arguments
));
$node
=
db_fetch_object
(
db_query
(
'SELECT n.nid, n.vid, n.type, n.status, n.created, n.changed, n.comment, n.promote, n.sticky, r.timestamp AS revision_timestamp, r.title, r.body, r.teaser, r.log, r.format, u.uid, u.name, u.picture, u.data FROM {node} n INNER JOIN {users} u ON u.uid = n.uid INNER JOIN {node_revisions} r ON r.vid = n.vid WHERE '
.
$cond
,
$arguments
));
}
if
(
$node
->
nid
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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